View | Details | Raw Unified | Return to bug 182183
Collapse All | Expand All

(-)./Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	ldns
4
PORTNAME=	ldns
5
PORTVERSION=	1.6.16
5
PORTVERSION=	1.6.16
6
PORTREVISION=	2
6
PORTREVISION=	3
7
CATEGORIES=	dns
7
CATEGORIES=	dns
8
MASTER_SITES=	http://www.nlnetlabs.nl/downloads/ldns/ \
8
MASTER_SITES=	http://www.nlnetlabs.nl/downloads/ldns/ \
9
		CRITICAL
9
		CRITICAL
(-)./files/patch-configure (+1213 lines)
Line 0 Link Here
1
--- ./configure.orig	2012-11-13 11:12:39.000000000 +0100
2
+++ ./configure	2013-09-16 23:36:26.006912397 +0200
3
@@ -1,13 +1,11 @@
4
 #! /bin/sh
5
 # Guess values for system-dependent variables and create Makefiles.
6
-# Generated by GNU Autoconf 2.68 for ldns 1.6.16.
7
+# Generated by GNU Autoconf 2.69 for ldns 1.6.16.
8
 #
9
 # Report bugs to <libdns@nlnetlabs.nl>.
10
 #
11
 #
12
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13
-# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14
-# Foundation, Inc.
15
+# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
16
 #
17
 #
18
 # This configure script is free software; the Free Software Foundation
19
@@ -136,6 +134,31 @@
20
 # CDPATH.
21
 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22
 
23
+# Use a proper internal environment variable to ensure we don't fall
24
+  # into an infinite loop, continuously re-executing ourselves.
25
+  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
26
+    _as_can_reexec=no; export _as_can_reexec;
27
+    # We cannot yet assume a decent shell, so we have to provide a
28
+# neutralization value for shells without unset; and this also
29
+# works around shells that cannot unset nonexistent variables.
30
+# Preserve -v and -x to the replacement shell.
31
+BASH_ENV=/dev/null
32
+ENV=/dev/null
33
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
34
+case $- in # ((((
35
+  *v*x* | *x*v* ) as_opts=-vx ;;
36
+  *v* ) as_opts=-v ;;
37
+  *x* ) as_opts=-x ;;
38
+  * ) as_opts= ;;
39
+esac
40
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
41
+# Admittedly, this is quite paranoid, since all the known shells bail
42
+# out after a failed `exec'.
43
+$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
44
+as_fn_exit 255
45
+  fi
46
+  # We don't want this to propagate to other subprocesses.
47
+          { _as_can_reexec=; unset _as_can_reexec;}
48
 if test "x$CONFIG_SHELL" = x; then
49
   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
50
   emulate sh
51
@@ -169,7 +192,8 @@
52
 else
53
   exitcode=1; echo positional parameters were not saved.
54
 fi
55
-test x\$exitcode = x0 || exit 1"
56
+test x\$exitcode = x0 || exit 1
57
+test -x / || exit 1"
58
   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
59
   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
60
   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
61
@@ -222,21 +246,25 @@
62
 
63
 
64
       if test "x$CONFIG_SHELL" != x; then :
65
-  # We cannot yet assume a decent shell, so we have to provide a
66
-	# neutralization value for shells without unset; and this also
67
-	# works around shells that cannot unset nonexistent variables.
68
-	# Preserve -v and -x to the replacement shell.
69
-	BASH_ENV=/dev/null
70
-	ENV=/dev/null
71
-	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
72
-	export CONFIG_SHELL
73
-	case $- in # ((((
74
-	  *v*x* | *x*v* ) as_opts=-vx ;;
75
-	  *v* ) as_opts=-v ;;
76
-	  *x* ) as_opts=-x ;;
77
-	  * ) as_opts= ;;
78
-	esac
79
-	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
80
+  export CONFIG_SHELL
81
+             # We cannot yet assume a decent shell, so we have to provide a
82
+# neutralization value for shells without unset; and this also
83
+# works around shells that cannot unset nonexistent variables.
84
+# Preserve -v and -x to the replacement shell.
85
+BASH_ENV=/dev/null
86
+ENV=/dev/null
87
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
88
+case $- in # ((((
89
+  *v*x* | *x*v* ) as_opts=-vx ;;
90
+  *v* ) as_opts=-v ;;
91
+  *x* ) as_opts=-x ;;
92
+  * ) as_opts= ;;
93
+esac
94
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
95
+# Admittedly, this is quite paranoid, since all the known shells bail
96
+# out after a failed `exec'.
97
+$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
98
+exit 255
99
 fi
100
 
101
     if test x$as_have_required = xno; then :
102
@@ -339,6 +367,14 @@
103
 
104
 
105
 } # as_fn_mkdir_p
106
+
107
+# as_fn_executable_p FILE
108
+# -----------------------
109
+# Test if FILE is an executable regular file.
110
+as_fn_executable_p ()
111
+{
112
+  test -f "$1" && test -x "$1"
113
+} # as_fn_executable_p
114
 # as_fn_append VAR VALUE
115
 # ----------------------
116
 # Append the text in VALUE to the end of the definition contained in VAR. Take
117
@@ -460,6 +496,10 @@
118
   chmod +x "$as_me.lineno" ||
119
     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
120
 
121
+  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
122
+  # already done that, so ensure we don't try to do so again and fall
123
+  # in an infinite loop.  This has already happened in practice.
124
+  _as_can_reexec=no; export _as_can_reexec
125
   # Don't try to exec as it changes $[0], causing all sort of problems
126
   # (the dirname of $[0] is not the place where we might find the
127
   # original and so on.  Autoconf is especially sensitive to this).
128
@@ -494,16 +534,16 @@
129
     # ... but there are two gotchas:
130
     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
131
     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
132
-    # In both cases, we have to default to `cp -p'.
133
+    # In both cases, we have to default to `cp -pR'.
134
     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
135
-      as_ln_s='cp -p'
136
+      as_ln_s='cp -pR'
137
   elif ln conf$$.file conf$$ 2>/dev/null; then
138
     as_ln_s=ln
139
   else
140
-    as_ln_s='cp -p'
141
+    as_ln_s='cp -pR'
142
   fi
143
 else
144
-  as_ln_s='cp -p'
145
+  as_ln_s='cp -pR'
146
 fi
147
 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
148
 rmdir conf$$.dir 2>/dev/null
149
@@ -515,28 +555,8 @@
150
   as_mkdir_p=false
151
 fi
152
 
153
-if test -x / >/dev/null 2>&1; then
154
-  as_test_x='test -x'
155
-else
156
-  if ls -dL / >/dev/null 2>&1; then
157
-    as_ls_L_option=L
158
-  else
159
-    as_ls_L_option=
160
-  fi
161
-  as_test_x='
162
-    eval sh -c '\''
163
-      if test -d "$1"; then
164
-	test -d "$1/.";
165
-      else
166
-	case $1 in #(
167
-	-*)set "./$1";;
168
-	esac;
169
-	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
170
-	???[sx]*):;;*)false;;esac;fi
171
-    '\'' sh
172
-  '
173
-fi
174
-as_executable_p=$as_test_x
175
+as_test_x='test -x'
176
+as_executable_p=as_fn_executable_p
177
 
178
 # Sed expression to map a string onto a valid CPP name.
179
 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
180
@@ -1242,8 +1262,6 @@
181
 if test "x$host_alias" != x; then
182
   if test "x$build_alias" = x; then
183
     cross_compiling=maybe
184
-    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
185
-    If a cross compiler is detected then cross compile mode will be used" >&2
186
   elif test "x$build_alias" != "x$host_alias"; then
187
     cross_compiling=yes
188
   fi
189
@@ -1518,9 +1536,9 @@
190
 if $ac_init_version; then
191
   cat <<\_ACEOF
192
 ldns configure 1.6.16
193
-generated by GNU Autoconf 2.68
194
+generated by GNU Autoconf 2.69
195
 
196
-Copyright (C) 2010 Free Software Foundation, Inc.
197
+Copyright (C) 2012 Free Software Foundation, Inc.
198
 This configure script is free software; the Free Software Foundation
199
 gives unlimited permission to copy, distribute and modify it.
200
 _ACEOF
201
@@ -1851,7 +1869,7 @@
202
 	 test ! -s conftest.err
203
        } && test -s conftest$ac_exeext && {
204
 	 test "$cross_compiling" = yes ||
205
-	 $as_test_x conftest$ac_exeext
206
+	 test -x conftest$ac_exeext
207
        }; then :
208
   ac_retval=0
209
 else
210
@@ -2000,7 +2018,8 @@
211
 main ()
212
 {
213
 static int test_array [1 - 2 * !(($2) >= 0)];
214
-test_array [0] = 0
215
+test_array [0] = 0;
216
+return test_array [0];
217
 
218
   ;
219
   return 0;
220
@@ -2016,7 +2035,8 @@
221
 main ()
222
 {
223
 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
224
-test_array [0] = 0
225
+test_array [0] = 0;
226
+return test_array [0];
227
 
228
   ;
229
   return 0;
230
@@ -2042,7 +2062,8 @@
231
 main ()
232
 {
233
 static int test_array [1 - 2 * !(($2) < 0)];
234
-test_array [0] = 0
235
+test_array [0] = 0;
236
+return test_array [0];
237
 
238
   ;
239
   return 0;
240
@@ -2058,7 +2079,8 @@
241
 main ()
242
 {
243
 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
244
-test_array [0] = 0
245
+test_array [0] = 0;
246
+return test_array [0];
247
 
248
   ;
249
   return 0;
250
@@ -2092,7 +2114,8 @@
251
 main ()
252
 {
253
 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
254
-test_array [0] = 0
255
+test_array [0] = 0;
256
+return test_array [0];
257
 
258
   ;
259
   return 0;
260
@@ -2222,7 +2245,7 @@
261
 running configure, to aid debugging if configure makes a mistake.
262
 
263
 It was created by ldns $as_me 1.6.16, which was
264
-generated by GNU Autoconf 2.68.  Invocation command line was
265
+generated by GNU Autoconf 2.69.  Invocation command line was
266
 
267
   $ $0 $@
268
 
269
@@ -2606,7 +2629,7 @@
270
   IFS=$as_save_IFS
271
   test -z "$as_dir" && as_dir=.
272
     for ac_exec_ext in '' $ac_executable_extensions; do
273
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
274
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
275
     ac_cv_prog_CC="${ac_tool_prefix}gcc"
276
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
277
     break 2
278
@@ -2646,7 +2669,7 @@
279
   IFS=$as_save_IFS
280
   test -z "$as_dir" && as_dir=.
281
     for ac_exec_ext in '' $ac_executable_extensions; do
282
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
283
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
284
     ac_cv_prog_ac_ct_CC="gcc"
285
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
286
     break 2
287
@@ -2699,7 +2722,7 @@
288
   IFS=$as_save_IFS
289
   test -z "$as_dir" && as_dir=.
290
     for ac_exec_ext in '' $ac_executable_extensions; do
291
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
292
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
293
     ac_cv_prog_CC="${ac_tool_prefix}cc"
294
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
295
     break 2
296
@@ -2740,7 +2763,7 @@
297
   IFS=$as_save_IFS
298
   test -z "$as_dir" && as_dir=.
299
     for ac_exec_ext in '' $ac_executable_extensions; do
300
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
301
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
302
     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
303
        ac_prog_rejected=yes
304
        continue
305
@@ -2798,7 +2821,7 @@
306
   IFS=$as_save_IFS
307
   test -z "$as_dir" && as_dir=.
308
     for ac_exec_ext in '' $ac_executable_extensions; do
309
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
310
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
311
     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
312
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
313
     break 2
314
@@ -2842,7 +2865,7 @@
315
   IFS=$as_save_IFS
316
   test -z "$as_dir" && as_dir=.
317
     for ac_exec_ext in '' $ac_executable_extensions; do
318
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
319
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
320
     ac_cv_prog_ac_ct_CC="$ac_prog"
321
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
322
     break 2
323
@@ -3288,8 +3311,7 @@
324
 /* end confdefs.h.  */
325
 #include <stdarg.h>
326
 #include <stdio.h>
327
-#include <sys/types.h>
328
-#include <sys/stat.h>
329
+struct stat;
330
 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
331
 struct buf { int x; };
332
 FILE * (*rcsopen) (struct buf *, struct stat *, int);
333
@@ -3529,7 +3551,7 @@
334
     for ac_prog in grep ggrep; do
335
     for ac_exec_ext in '' $ac_executable_extensions; do
336
       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
337
-      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
338
+      as_fn_executable_p "$ac_path_GREP" || continue
339
 # Check for GNU ac_path_GREP and select it if it is found.
340
   # Check for GNU $ac_path_GREP
341
 case `"$ac_path_GREP" --version 2>&1` in
342
@@ -3595,7 +3617,7 @@
343
     for ac_prog in egrep; do
344
     for ac_exec_ext in '' $ac_executable_extensions; do
345
       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
346
-      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
347
+      as_fn_executable_p "$ac_path_EGREP" || continue
348
 # Check for GNU ac_path_EGREP and select it if it is found.
349
   # Check for GNU $ac_path_EGREP
350
 case `"$ac_path_EGREP" --version 2>&1` in
351
@@ -3802,8 +3824,8 @@
352
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
353
 /* end confdefs.h.  */
354
 
355
-#	  define __EXTENSIONS__ 1
356
-	  $ac_includes_default
357
+#         define __EXTENSIONS__ 1
358
+          $ac_includes_default
359
 int
360
 main ()
361
 {
362
@@ -3857,7 +3879,7 @@
363
   IFS=$as_save_IFS
364
   test -z "$as_dir" && as_dir=.
365
     for ac_exec_ext in '' $ac_executable_extensions; do
366
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
367
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
368
     ac_cv_prog_CC="${ac_tool_prefix}gcc"
369
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
370
     break 2
371
@@ -3897,7 +3919,7 @@
372
   IFS=$as_save_IFS
373
   test -z "$as_dir" && as_dir=.
374
     for ac_exec_ext in '' $ac_executable_extensions; do
375
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
376
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
377
     ac_cv_prog_ac_ct_CC="gcc"
378
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
379
     break 2
380
@@ -3950,7 +3972,7 @@
381
   IFS=$as_save_IFS
382
   test -z "$as_dir" && as_dir=.
383
     for ac_exec_ext in '' $ac_executable_extensions; do
384
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
385
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
386
     ac_cv_prog_CC="${ac_tool_prefix}cc"
387
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
388
     break 2
389
@@ -3991,7 +4013,7 @@
390
   IFS=$as_save_IFS
391
   test -z "$as_dir" && as_dir=.
392
     for ac_exec_ext in '' $ac_executable_extensions; do
393
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
394
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
395
     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
396
        ac_prog_rejected=yes
397
        continue
398
@@ -4049,7 +4071,7 @@
399
   IFS=$as_save_IFS
400
   test -z "$as_dir" && as_dir=.
401
     for ac_exec_ext in '' $ac_executable_extensions; do
402
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
403
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
404
     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
405
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
406
     break 2
407
@@ -4093,7 +4115,7 @@
408
   IFS=$as_save_IFS
409
   test -z "$as_dir" && as_dir=.
410
     for ac_exec_ext in '' $ac_executable_extensions; do
411
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
412
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
413
     ac_cv_prog_ac_ct_CC="$ac_prog"
414
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
415
     break 2
416
@@ -4289,8 +4311,7 @@
417
 /* end confdefs.h.  */
418
 #include <stdarg.h>
419
 #include <stdio.h>
420
-#include <sys/types.h>
421
-#include <sys/stat.h>
422
+struct stat;
423
 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
424
 struct buf { int x; };
425
 FILE * (*rcsopen) (struct buf *, struct stat *, int);
426
@@ -4624,11 +4645,11 @@
427
 int
428
 main ()
429
 {
430
-/* FIXME: Include the comments suggested by Paul. */
431
+
432
 #ifndef __cplusplus
433
-  /* Ultrix mips cc rejects this.  */
434
+  /* Ultrix mips cc rejects this sort of thing.  */
435
   typedef int charset[2];
436
-  const charset cs;
437
+  const charset cs = { 0, 0 };
438
   /* SunOS 4.1.1 cc rejects this.  */
439
   char const *const *pcpcc;
440
   char **ppc;
441
@@ -4645,8 +4666,9 @@
442
   ++pcpcc;
443
   ppc = (char**) pcpcc;
444
   pcpcc = (char const *const *) ppc;
445
-  { /* SCO 3.2v4 cc rejects this.  */
446
-    char *t;
447
+  { /* SCO 3.2v4 cc rejects this sort of thing.  */
448
+    char tx;
449
+    char *t = &tx;
450
     char const *s = 0 ? (char *) 0 : (char const *) 0;
451
 
452
     *t++ = 0;
453
@@ -4662,10 +4684,10 @@
454
     iptr p = 0;
455
     ++p;
456
   }
457
-  { /* AIX XL C 1.02.0.0 rejects this saying
458
+  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
459
        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
460
-    struct s { int j; const int *ap[3]; };
461
-    struct s *b; b->j = 5;
462
+    struct s { int j; const int *ap[3]; } bx;
463
+    struct s *b = &bx; b->j = 5;
464
   }
465
   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
466
     const int foo = 10;
467
@@ -5482,7 +5504,7 @@
468
 
469
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
470
 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
471
-cache=`$as_echo "-D_POSIX_C_SOURCE=200112" | $as_tr_sh`
472
+cache=_D_POSIX_C_SOURCE_200112
473
 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
474
   $as_echo_n "(cached) " >&6
475
 else
476
@@ -5785,7 +5807,7 @@
477
   IFS=$as_save_IFS
478
   test -z "$as_dir" && as_dir=.
479
     for ac_exec_ext in '' $ac_executable_extensions; do
480
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
481
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
482
     ac_cv_prog_doxygen="doxygen"
483
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
484
     break 2
485
@@ -6034,7 +6056,7 @@
486
 fi
487
 
488
 # check for python
489
-PYTHON_X_CFLAGS=""
490
+PYTHON_X_CFLAGS="-L/usr/local/lib"
491
 ldns_with_pyldns=no
492
 ldns_with_pyldnsx=no
493
 
494
@@ -6083,11 +6105,12 @@
495
 # LICENSE
496
 #
497
 #   Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de>
498
-#   Copyright (c) 2009 Alan W. Irwin <irwin@beluga.phys.uvic.ca>
499
+#   Copyright (c) 2009 Alan W. Irwin
500
 #   Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net>
501
-#   Copyright (c) 2009 Andrew Collier <colliera@ukzn.ac.za>
502
+#   Copyright (c) 2009 Andrew Collier
503
 #   Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org>
504
 #   Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org>
505
+#   Copyright (c) 2013 Daniel Mullner <muellner@math.stanford.edu>
506
 #
507
 #   This program is free software: you can redistribute it and/or modify it
508
 #   under the terms of the GNU General Public License as published by the
509
@@ -6115,7 +6138,7 @@
510
 #   modified version of the Autoconf Macro, you may extend this special
511
 #   exception to the GPL to apply to your modified version as well.
512
 
513
-#serial 8
514
+#serial 16
515
 
516
 # This is what autoupdate's m4 run will expand.  It fires
517
 # the warning (with _au_warn_XXX), outputs it into the
518
@@ -6163,7 +6186,7 @@
519
   IFS=$as_save_IFS
520
   test -z "$as_dir" && as_dir=.
521
     for ac_exec_ext in '' $ac_executable_extensions; do
522
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
523
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
524
     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
525
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
526
     break 2
527
@@ -6273,8 +6296,14 @@
528
 	if test -z "$PYTHON_CPPFLAGS"; then
529
 		python_path=`$PYTHON -c "import distutils.sysconfig; \
530
 			print (distutils.sysconfig.get_python_inc ());"`
531
+		plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
532
+			print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
533
 		if test -n "${python_path}"; then
534
-			python_path="-I$python_path"
535
+			if test "${plat_python_path}" != "${python_path}"; then
536
+				python_path="-I$python_path -I$plat_python_path"
537
+			else
538
+				python_path="-I$python_path"
539
+			fi
540
 		fi
541
 		PYTHON_CPPFLAGS=$python_path
542
 	fi
543
@@ -6295,13 +6324,10 @@
544
 # join all versioning strings, on some systems
545
 # major/minor numbers could be in different list elements
546
 from distutils.sysconfig import *
547
-ret = ''
548
-for e in get_config_vars ('VERSION'):
549
-	if (e != None):
550
-		ret += e
551
-print (ret)
552
-EOD
553
-`
554
+e = get_config_var('VERSION')
555
+if e is not None:
556
+	print(e)
557
+EOD`
558
 
559
 		if test -z "$ac_python_version"; then
560
 			if test -n "$PYTHON_VERSION"; then
561
@@ -6324,34 +6350,27 @@
562
 
563
 # There should be only one
564
 import distutils.sysconfig
565
-for e in distutils.sysconfig.get_config_vars ('LIBDIR'):
566
-	if e != None:
567
-		print (e)
568
-		break
569
-EOD
570
-`
571
-
572
-		# Before checking for libpythonX.Y, we need to know
573
-		# the extension the OS we're on uses for libraries
574
-		# (we take the first one, if there's more than one fix me!):
575
-		ac_python_soext=`$PYTHON -c \
576
-		  "import distutils.sysconfig; \
577
-		  print (distutils.sysconfig.get_config_vars('SO')[0])"`
578
+e = distutils.sysconfig.get_config_var('LIBDIR')
579
+if e is not None:
580
+	print (e)
581
+EOD`
582
 
583
 		# Now, for the library:
584
-		ac_python_soname=`$PYTHON -c \
585
-		  "import distutils.sysconfig; \
586
-		  print (distutils.sysconfig.get_config_vars('LDLIBRARY')[0])"`
587
+		ac_python_library=`cat<<EOD | $PYTHON -
588
 
589
-		# Strip away extension from the end to canonicalize its name:
590
-		ac_python_library=`echo "$ac_python_soname" | sed "s/${ac_python_soext}$//"`
591
+import distutils.sysconfig
592
+c = distutils.sysconfig.get_config_vars()
593
+if 'LDVERSION' in c:
594
+	print ('python'+c['LDVERSION'])
595
+else:
596
+	print ('python'+c['VERSION'])
597
+EOD`
598
 
599
 		# This small piece shamelessly adapted from PostgreSQL python macro;
600
 		# credits goes to momjian, I think. I'd like to put the right name
601
 		# in the credits, if someone can point me in the right direction... ?
602
 		#
603
-		if test -n "$ac_python_libdir" -a -n "$ac_python_library" \
604
-			-a x"$ac_python_library" != x"$ac_python_soname"
605
+		if test -n "$ac_python_libdir" -a -n "$ac_python_library"
606
 		then
607
 			# use the official shared library
608
 			ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
609
@@ -6383,7 +6402,7 @@
610
 $as_echo_n "checking for Python site-packages path... " >&6; }
611
 	if test -z "$PYTHON_SITE_PKG"; then
612
 		PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
613
-			print (distutils.sysconfig.get_python_lib(1,0));"`
614
+			print (distutils.sysconfig.get_python_lib(0,0));"`
615
 	fi
616
 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
617
 $as_echo "$PYTHON_SITE_PKG" >&6; }
618
@@ -6397,7 +6416,7 @@
619
 	if test -z "$PYTHON_EXTRA_LIBS"; then
620
 	   PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
621
                 conf = distutils.sysconfig.get_config_var; \
622
-                print (conf('LOCALMODLIBS') + ' ' + conf('LIBS'))"`
623
+                print (conf('LIBS'))"`
624
 	fi
625
 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
626
 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
627
@@ -6598,7 +6617,7 @@
628
   IFS=$as_save_IFS
629
   test -z "$as_dir" && as_dir=.
630
     for ac_exec_ext in '' $ac_executable_extensions; do
631
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
632
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
633
     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
634
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
635
     break 2
636
@@ -6717,7 +6736,7 @@
637
   IFS=$as_save_IFS
638
   test -z "$as_dir" && as_dir=.
639
     for ac_exec_ext in '' $ac_executable_extensions; do
640
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
641
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
642
     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
643
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
644
     break 2
645
@@ -7042,7 +7061,7 @@
646
   IFS=$as_save_IFS
647
   test -z "$as_dir" && as_dir=.
648
     for ac_exec_ext in '' $ac_executable_extensions; do
649
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
650
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
651
     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
652
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
653
     break 2
654
@@ -7085,7 +7104,7 @@
655
   IFS=$as_save_IFS
656
   test -z "$as_dir" && as_dir=.
657
     for ac_exec_ext in '' $ac_executable_extensions; do
658
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
659
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
660
     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
661
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
662
     break 2
663
@@ -7241,7 +7260,7 @@
664
     for ac_prog in sed gsed; do
665
     for ac_exec_ext in '' $ac_executable_extensions; do
666
       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
667
-      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
668
+      as_fn_executable_p "$ac_path_SED" || continue
669
 # Check for GNU ac_path_SED and select it if it is found.
670
   # Check for GNU $ac_path_SED
671
 case `"$ac_path_SED" --version 2>&1` in
672
@@ -7320,7 +7339,7 @@
673
     for ac_prog in fgrep; do
674
     for ac_exec_ext in '' $ac_executable_extensions; do
675
       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
676
-      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
677
+      as_fn_executable_p "$ac_path_FGREP" || continue
678
 # Check for GNU ac_path_FGREP and select it if it is found.
679
   # Check for GNU $ac_path_FGREP
680
 case `"$ac_path_FGREP" --version 2>&1` in
681
@@ -7576,7 +7595,7 @@
682
   IFS=$as_save_IFS
683
   test -z "$as_dir" && as_dir=.
684
     for ac_exec_ext in '' $ac_executable_extensions; do
685
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
686
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
687
     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
688
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
689
     break 2
690
@@ -7620,7 +7639,7 @@
691
   IFS=$as_save_IFS
692
   test -z "$as_dir" && as_dir=.
693
     for ac_exec_ext in '' $ac_executable_extensions; do
694
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
695
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
696
     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
697
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
698
     break 2
699
@@ -8044,7 +8063,7 @@
700
   IFS=$as_save_IFS
701
   test -z "$as_dir" && as_dir=.
702
     for ac_exec_ext in '' $ac_executable_extensions; do
703
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
704
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
705
     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
706
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
707
     break 2
708
@@ -8084,7 +8103,7 @@
709
   IFS=$as_save_IFS
710
   test -z "$as_dir" && as_dir=.
711
     for ac_exec_ext in '' $ac_executable_extensions; do
712
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
713
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
714
     ac_cv_prog_ac_ct_OBJDUMP="objdump"
715
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
716
     break 2
717
@@ -8256,7 +8275,7 @@
718
   lt_cv_deplibs_check_method=pass_all
719
   ;;
720
 
721
-netbsd* | netbsdelf*-gnu)
722
+netbsd*)
723
   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
724
     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
725
   else
726
@@ -8390,7 +8409,7 @@
727
   IFS=$as_save_IFS
728
   test -z "$as_dir" && as_dir=.
729
     for ac_exec_ext in '' $ac_executable_extensions; do
730
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
731
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
732
     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
733
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
734
     break 2
735
@@ -8430,7 +8449,7 @@
736
   IFS=$as_save_IFS
737
   test -z "$as_dir" && as_dir=.
738
     for ac_exec_ext in '' $ac_executable_extensions; do
739
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
740
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
741
     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
742
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
743
     break 2
744
@@ -8533,7 +8552,7 @@
745
   IFS=$as_save_IFS
746
   test -z "$as_dir" && as_dir=.
747
     for ac_exec_ext in '' $ac_executable_extensions; do
748
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
749
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
750
     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
751
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
752
     break 2
753
@@ -8577,7 +8596,7 @@
754
   IFS=$as_save_IFS
755
   test -z "$as_dir" && as_dir=.
756
     for ac_exec_ext in '' $ac_executable_extensions; do
757
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
758
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
759
     ac_cv_prog_ac_ct_AR="$ac_prog"
760
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
761
     break 2
762
@@ -8702,7 +8721,7 @@
763
   IFS=$as_save_IFS
764
   test -z "$as_dir" && as_dir=.
765
     for ac_exec_ext in '' $ac_executable_extensions; do
766
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
767
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
768
     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
769
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
770
     break 2
771
@@ -8742,7 +8761,7 @@
772
   IFS=$as_save_IFS
773
   test -z "$as_dir" && as_dir=.
774
     for ac_exec_ext in '' $ac_executable_extensions; do
775
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
776
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
777
     ac_cv_prog_ac_ct_STRIP="strip"
778
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
779
     break 2
780
@@ -8801,7 +8820,7 @@
781
   IFS=$as_save_IFS
782
   test -z "$as_dir" && as_dir=.
783
     for ac_exec_ext in '' $ac_executable_extensions; do
784
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
785
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
786
     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
787
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
788
     break 2
789
@@ -8841,7 +8860,7 @@
790
   IFS=$as_save_IFS
791
   test -z "$as_dir" && as_dir=.
792
     for ac_exec_ext in '' $ac_executable_extensions; do
793
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
794
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
795
     ac_cv_prog_ac_ct_RANLIB="ranlib"
796
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
797
     break 2
798
@@ -8945,7 +8964,7 @@
799
   IFS=$as_save_IFS
800
   test -z "$as_dir" && as_dir=.
801
     for ac_exec_ext in '' $ac_executable_extensions; do
802
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
804
     ac_cv_prog_AWK="$ac_prog"
805
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
806
     break 2
807
@@ -9532,7 +9551,7 @@
808
   IFS=$as_save_IFS
809
   test -z "$as_dir" && as_dir=.
810
     for ac_exec_ext in '' $ac_executable_extensions; do
811
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
812
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
813
     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
814
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
815
     break 2
816
@@ -9572,7 +9591,7 @@
817
   IFS=$as_save_IFS
818
   test -z "$as_dir" && as_dir=.
819
     for ac_exec_ext in '' $ac_executable_extensions; do
820
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
821
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
822
     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
823
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
824
     break 2
825
@@ -9652,7 +9671,7 @@
826
   IFS=$as_save_IFS
827
   test -z "$as_dir" && as_dir=.
828
     for ac_exec_ext in '' $ac_executable_extensions; do
829
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
830
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
831
     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
832
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
833
     break 2
834
@@ -9692,7 +9711,7 @@
835
   IFS=$as_save_IFS
836
   test -z "$as_dir" && as_dir=.
837
     for ac_exec_ext in '' $ac_executable_extensions; do
838
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
839
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
840
     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
841
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
842
     break 2
843
@@ -9744,7 +9763,7 @@
844
   IFS=$as_save_IFS
845
   test -z "$as_dir" && as_dir=.
846
     for ac_exec_ext in '' $ac_executable_extensions; do
847
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
848
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
849
     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
850
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
851
     break 2
852
@@ -9784,7 +9803,7 @@
853
   IFS=$as_save_IFS
854
   test -z "$as_dir" && as_dir=.
855
     for ac_exec_ext in '' $ac_executable_extensions; do
856
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
857
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
858
     ac_cv_prog_ac_ct_NMEDIT="nmedit"
859
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
860
     break 2
861
@@ -9836,7 +9855,7 @@
862
   IFS=$as_save_IFS
863
   test -z "$as_dir" && as_dir=.
864
     for ac_exec_ext in '' $ac_executable_extensions; do
865
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
866
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
867
     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
868
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
869
     break 2
870
@@ -9876,7 +9895,7 @@
871
   IFS=$as_save_IFS
872
   test -z "$as_dir" && as_dir=.
873
     for ac_exec_ext in '' $ac_executable_extensions; do
874
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
875
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
876
     ac_cv_prog_ac_ct_LIPO="lipo"
877
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
878
     break 2
879
@@ -9928,7 +9947,7 @@
880
   IFS=$as_save_IFS
881
   test -z "$as_dir" && as_dir=.
882
     for ac_exec_ext in '' $ac_executable_extensions; do
883
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
884
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
885
     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
886
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
887
     break 2
888
@@ -9968,7 +9987,7 @@
889
   IFS=$as_save_IFS
890
   test -z "$as_dir" && as_dir=.
891
     for ac_exec_ext in '' $ac_executable_extensions; do
892
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
893
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
894
     ac_cv_prog_ac_ct_OTOOL="otool"
895
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
896
     break 2
897
@@ -10020,7 +10039,7 @@
898
   IFS=$as_save_IFS
899
   test -z "$as_dir" && as_dir=.
900
     for ac_exec_ext in '' $ac_executable_extensions; do
901
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
902
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
903
     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
904
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
905
     break 2
906
@@ -10060,7 +10079,7 @@
907
   IFS=$as_save_IFS
908
   test -z "$as_dir" && as_dir=.
909
     for ac_exec_ext in '' $ac_executable_extensions; do
910
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
911
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
912
     ac_cv_prog_ac_ct_OTOOL64="otool64"
913
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
914
     break 2
915
@@ -11429,9 +11448,6 @@
916
   openbsd*)
917
     with_gnu_ld=no
918
     ;;
919
-  linux* | k*bsd*-gnu | gnu*)
920
-    link_all_deplibs=no
921
-    ;;
922
   esac
923
 
924
   ld_shlibs=yes
925
@@ -11653,7 +11669,7 @@
926
       fi
927
       ;;
928
 
929
-    netbsd* | netbsdelf*-gnu)
930
+    netbsd*)
931
       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
932
 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
933
 	wlarc=
934
@@ -11830,7 +11846,6 @@
935
 	if test "$aix_use_runtimelinking" = yes; then
936
 	  shared_flag="$shared_flag "'${wl}-G'
937
 	fi
938
-	link_all_deplibs=no
939
       else
940
 	# not using gcc
941
 	if test "$host_cpu" = ia64; then
942
@@ -12284,7 +12299,7 @@
943
       link_all_deplibs=yes
944
       ;;
945
 
946
-    netbsd* | netbsdelf*-gnu)
947
+    netbsd*)
948
       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
949
 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
950
       else
951
@@ -13312,18 +13327,6 @@
952
   dynamic_linker='GNU/Linux ld.so'
953
   ;;
954
 
955
-netbsdelf*-gnu)
956
-  version_type=linux
957
-  need_lib_prefix=no
958
-  need_version=no
959
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
960
-  soname_spec='${libname}${release}${shared_ext}$major'
961
-  shlibpath_var=LD_LIBRARY_PATH
962
-  shlibpath_overrides_runpath=no
963
-  hardcode_into_libs=yes
964
-  dynamic_linker='NetBSD ld.elf_so'
965
-  ;;
966
-
967
 netbsd*)
968
   version_type=sunos
969
   need_lib_prefix=no
970
@@ -15112,60 +15115,60 @@
971
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
972
 /* end confdefs.h.  */
973
 
974
-#include <stdbool.h>
975
-#ifndef bool
976
- "error: bool is not defined"
977
-#endif
978
-#ifndef false
979
- "error: false is not defined"
980
-#endif
981
-#if false
982
- "error: false is not 0"
983
-#endif
984
-#ifndef true
985
- "error: true is not defined"
986
-#endif
987
-#if true != 1
988
- "error: true is not 1"
989
-#endif
990
-#ifndef __bool_true_false_are_defined
991
- "error: __bool_true_false_are_defined is not defined"
992
-#endif
993
+             #include <stdbool.h>
994
+             #ifndef bool
995
+              "error: bool is not defined"
996
+             #endif
997
+             #ifndef false
998
+              "error: false is not defined"
999
+             #endif
1000
+             #if false
1001
+              "error: false is not 0"
1002
+             #endif
1003
+             #ifndef true
1004
+              "error: true is not defined"
1005
+             #endif
1006
+             #if true != 1
1007
+              "error: true is not 1"
1008
+             #endif
1009
+             #ifndef __bool_true_false_are_defined
1010
+              "error: __bool_true_false_are_defined is not defined"
1011
+             #endif
1012
 
1013
-	struct s { _Bool s: 1; _Bool t; } s;
1014
+             struct s { _Bool s: 1; _Bool t; } s;
1015
 
1016
-	char a[true == 1 ? 1 : -1];
1017
-	char b[false == 0 ? 1 : -1];
1018
-	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
1019
-	char d[(bool) 0.5 == true ? 1 : -1];
1020
-	/* See body of main program for 'e'.  */
1021
-	char f[(_Bool) 0.0 == false ? 1 : -1];
1022
-	char g[true];
1023
-	char h[sizeof (_Bool)];
1024
-	char i[sizeof s.t];
1025
-	enum { j = false, k = true, l = false * true, m = true * 256 };
1026
-	/* The following fails for
1027
-	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
1028
-	_Bool n[m];
1029
-	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
1030
-	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
1031
-	/* Catch a bug in an HP-UX C compiler.  See
1032
-	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
1033
-	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
1034
-	 */
1035
-	_Bool q = true;
1036
-	_Bool *pq = &q;
1037
+             char a[true == 1 ? 1 : -1];
1038
+             char b[false == 0 ? 1 : -1];
1039
+             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
1040
+             char d[(bool) 0.5 == true ? 1 : -1];
1041
+             /* See body of main program for 'e'.  */
1042
+             char f[(_Bool) 0.0 == false ? 1 : -1];
1043
+             char g[true];
1044
+             char h[sizeof (_Bool)];
1045
+             char i[sizeof s.t];
1046
+             enum { j = false, k = true, l = false * true, m = true * 256 };
1047
+             /* The following fails for
1048
+                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
1049
+             _Bool n[m];
1050
+             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
1051
+             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
1052
+             /* Catch a bug in an HP-UX C compiler.  See
1053
+                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
1054
+                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
1055
+              */
1056
+             _Bool q = true;
1057
+             _Bool *pq = &q;
1058
 
1059
 int
1060
 main ()
1061
 {
1062
 
1063
-	bool e = &s;
1064
-	*pq |= q;
1065
-	*pq |= ! q;
1066
-	/* Refer to every declared value, to avoid compiler optimizations.  */
1067
-	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
1068
-		+ !m + !n + !o + !p + !q + !pq);
1069
+             bool e = &s;
1070
+             *pq |= q;
1071
+             *pq |= ! q;
1072
+             /* Refer to every declared value, to avoid compiler optimizations.  */
1073
+             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
1074
+                     + !m + !n + !o + !p + !q + !pq);
1075
 
1076
   ;
1077
   return 0;
1078
@@ -15180,7 +15183,7 @@
1079
 fi
1080
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
1081
 $as_echo "$ac_cv_header_stdbool_h" >&6; }
1082
-ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
1083
+   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
1084
 if test "x$ac_cv_type__Bool" = xyes; then :
1085
 
1086
 cat >>confdefs.h <<_ACEOF
1087
@@ -15190,6 +15193,7 @@
1088
 
1089
 fi
1090
 
1091
+
1092
 if test $ac_cv_header_stdbool_h = yes; then
1093
 
1094
 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
1095
@@ -15520,7 +15524,8 @@
1096
 main ()
1097
 {
1098
 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
1099
-test_array [0] = 0
1100
+test_array [0] = 0;
1101
+return test_array [0];
1102
 
1103
   ;
1104
   return 0;
1105
@@ -16336,7 +16341,7 @@
1106
   IFS=$as_save_IFS
1107
   test -z "$as_dir" && as_dir=.
1108
     for ac_exec_ext in '' $ac_executable_extensions; do
1109
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1110
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1111
     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
1112
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1113
     break 2
1114
@@ -16376,7 +16381,7 @@
1115
   IFS=$as_save_IFS
1116
   test -z "$as_dir" && as_dir=.
1117
     for ac_exec_ext in '' $ac_executable_extensions; do
1118
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1119
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1120
     ac_cv_prog_ac_ct_WINDRES="windres"
1121
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1122
     break 2
1123
@@ -17070,16 +17075,16 @@
1124
     # ... but there are two gotchas:
1125
     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1126
     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1127
-    # In both cases, we have to default to `cp -p'.
1128
+    # In both cases, we have to default to `cp -pR'.
1129
     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1130
-      as_ln_s='cp -p'
1131
+      as_ln_s='cp -pR'
1132
   elif ln conf$$.file conf$$ 2>/dev/null; then
1133
     as_ln_s=ln
1134
   else
1135
-    as_ln_s='cp -p'
1136
+    as_ln_s='cp -pR'
1137
   fi
1138
 else
1139
-  as_ln_s='cp -p'
1140
+  as_ln_s='cp -pR'
1141
 fi
1142
 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1143
 rmdir conf$$.dir 2>/dev/null
1144
@@ -17139,28 +17144,16 @@
1145
   as_mkdir_p=false
1146
 fi
1147
 
1148
-if test -x / >/dev/null 2>&1; then
1149
-  as_test_x='test -x'
1150
-else
1151
-  if ls -dL / >/dev/null 2>&1; then
1152
-    as_ls_L_option=L
1153
-  else
1154
-    as_ls_L_option=
1155
-  fi
1156
-  as_test_x='
1157
-    eval sh -c '\''
1158
-      if test -d "$1"; then
1159
-	test -d "$1/.";
1160
-      else
1161
-	case $1 in #(
1162
-	-*)set "./$1";;
1163
-	esac;
1164
-	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1165
-	???[sx]*):;;*)false;;esac;fi
1166
-    '\'' sh
1167
-  '
1168
-fi
1169
-as_executable_p=$as_test_x
1170
+
1171
+# as_fn_executable_p FILE
1172
+# -----------------------
1173
+# Test if FILE is an executable regular file.
1174
+as_fn_executable_p ()
1175
+{
1176
+  test -f "$1" && test -x "$1"
1177
+} # as_fn_executable_p
1178
+as_test_x='test -x'
1179
+as_executable_p=as_fn_executable_p
1180
 
1181
 # Sed expression to map a string onto a valid CPP name.
1182
 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1183
@@ -17182,7 +17175,7 @@
1184
 # values after options handling.
1185
 ac_log="
1186
 This file was extended by ldns $as_me 1.6.16, which was
1187
-generated by GNU Autoconf 2.68.  Invocation command line was
1188
+generated by GNU Autoconf 2.69.  Invocation command line was
1189
 
1190
   CONFIG_FILES    = $CONFIG_FILES
1191
   CONFIG_HEADERS  = $CONFIG_HEADERS
1192
@@ -17248,10 +17241,10 @@
1193
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1194
 ac_cs_version="\\
1195
 ldns config.status 1.6.16
1196
-configured by $0, generated by GNU Autoconf 2.68,
1197
+configured by $0, generated by GNU Autoconf 2.69,
1198
   with options \\"\$ac_cs_config\\"
1199
 
1200
-Copyright (C) 2010 Free Software Foundation, Inc.
1201
+Copyright (C) 2012 Free Software Foundation, Inc.
1202
 This config.status script is free software; the Free Software Foundation
1203
 gives unlimited permission to copy, distribute and modify it."
1204
 
1205
@@ -17340,7 +17333,7 @@
1206
 _ACEOF
1207
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1208
 if \$ac_cs_recheck; then
1209
-  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1210
+  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1211
   shift
1212
   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
1213
   CONFIG_SHELL='$SHELL'

Return to bug 182183