Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for polyclip 1.9-1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell [email protected] about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME='polyclip'
579 PACKAGE_TARNAME='polyclip'
580 PACKAGE_VERSION='1.9-1'
581 PACKAGE_STRING='polyclip 1.9-1'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 # Factoring default headers for most tests.
586 ac_includes_default="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 # include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 # include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
620
621 ac_subst_vars='LTLIBOBJS
622 LIBOBJS
623 POLYCLIP_OBJECTS
624 POLYCLIP_LIBS
625 POLYCLIP_CXXFLAGS
626 POLYCLIP_CPPFLAGS
627 EGREP
628 GREP
629 CXXCPP
630 OBJEXT
631 EXEEXT
632 ac_ct_CXX
633 CPPFLAGS
634 LDFLAGS
635 CXXFLAGS
636 CXX
637 target_alias
638 host_alias
639 build_alias
640 LIBS
641 ECHO_T
642 ECHO_N
643 ECHO_C
644 DEFS
645 mandir
646 localedir
647 libdir
648 psdir
649 pdfdir
650 dvidir
651 htmldir
652 infodir
653 docdir
654 oldincludedir
655 includedir
656 runstatedir
657 localstatedir
658 sharedstatedir
659 sysconfdir
660 datadir
661 datarootdir
662 libexecdir
663 sbindir
664 bindir
665 program_transform_name
666 prefix
667 exec_prefix
668 PACKAGE_URL
669 PACKAGE_BUGREPORT
670 PACKAGE_STRING
671 PACKAGE_VERSION
672 PACKAGE_TARNAME
673 PACKAGE_NAME
674 PATH_SEPARATOR
675 SHELL'
676 ac_subst_files=''
677 ac_user_opts='
678 enable_option_checking
679 '
680 ac_precious_vars='build_alias
681 host_alias
682 target_alias
683 CXX
684 CXXFLAGS
685 LDFLAGS
686 LIBS
687 CPPFLAGS
688 CCC
689 CXXCPP'
690
691
692 # Initialize some variables set by options.
693 ac_init_help=
694 ac_init_version=false
695 ac_unrecognized_opts=
696 ac_unrecognized_sep=
697 # The variables have the same names as the options, with
698 # dashes changed to underlines.
699 cache_file=/dev/null
700 exec_prefix=NONE
701 no_create=
702 no_recursion=
703 prefix=NONE
704 program_prefix=NONE
705 program_suffix=NONE
706 program_transform_name=s,x,x,
707 silent=
708 site=
709 srcdir=
710 verbose=
711 x_includes=NONE
712 x_libraries=NONE
713
714 # Installation directory options.
715 # These are left unexpanded so users can "make install exec_prefix=/foo"
716 # and all the variables that are supposed to be based on exec_prefix
717 # by default will actually change.
718 # Use braces instead of parens because sh, perl, etc. also accept them.
719 # (The list follows the same order as the GNU Coding Standards.)
720 bindir='${exec_prefix}/bin'
721 sbindir='${exec_prefix}/sbin'
722 libexecdir='${exec_prefix}/libexec'
723 datarootdir='${prefix}/share'
724 datadir='${datarootdir}'
725 sysconfdir='${prefix}/etc'
726 sharedstatedir='${prefix}/com'
727 localstatedir='${prefix}/var'
728 runstatedir='${localstatedir}/run'
729 includedir='${prefix}/include'
730 oldincludedir='/usr/include'
731 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
732 infodir='${datarootdir}/info'
733 htmldir='${docdir}'
734 dvidir='${docdir}'
735 pdfdir='${docdir}'
736 psdir='${docdir}'
737 libdir='${exec_prefix}/lib'
738 localedir='${datarootdir}/locale'
739 mandir='${datarootdir}/man'
740
741 ac_prev=
742 ac_dashdash=
743 for ac_option
744 do
745 # If the previous option needs an argument, assign it.
746 if test -n "$ac_prev"; then
747 eval $ac_prev=\$ac_option
748 ac_prev=
749 continue
750 fi
751
752 case $ac_option in
753 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
754 *=) ac_optarg= ;;
755 *) ac_optarg=yes ;;
756 esac
757
758 # Accept the important Cygnus configure options, so we can diagnose typos.
759
760 case $ac_dashdash$ac_option in
761 --)
762 ac_dashdash=yes ;;
763
764 -bindir | --bindir | --bindi | --bind | --bin | --bi)
765 ac_prev=bindir ;;
766 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
767 bindir=$ac_optarg ;;
768
769 -build | --build | --buil | --bui | --bu)
770 ac_prev=build_alias ;;
771 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
772 build_alias=$ac_optarg ;;
773
774 -cache-file | --cache-file | --cache-fil | --cache-fi \
775 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
776 ac_prev=cache_file ;;
777 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
778 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
779 cache_file=$ac_optarg ;;
780
781 --config-cache | -C)
782 cache_file=config.cache ;;
783
784 -datadir | --datadir | --datadi | --datad)
785 ac_prev=datadir ;;
786 -datadir=* | --datadir=* | --datadi=* | --datad=*)
787 datadir=$ac_optarg ;;
788
789 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
790 | --dataroo | --dataro | --datar)
791 ac_prev=datarootdir ;;
792 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
793 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
794 datarootdir=$ac_optarg ;;
795
796 -disable-* | --disable-*)
797 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
798 # Reject names that are not valid shell variable names.
799 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
800 as_fn_error $? "invalid feature name: $ac_useropt"
801 ac_useropt_orig=$ac_useropt
802 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
803 case $ac_user_opts in
804 *"
805 "enable_$ac_useropt"
806 "*) ;;
807 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
808 ac_unrecognized_sep=', ';;
809 esac
810 eval enable_$ac_useropt=no ;;
811
812 -docdir | --docdir | --docdi | --doc | --do)
813 ac_prev=docdir ;;
814 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
815 docdir=$ac_optarg ;;
816
817 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
818 ac_prev=dvidir ;;
819 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
820 dvidir=$ac_optarg ;;
821
822 -enable-* | --enable-*)
823 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
824 # Reject names that are not valid shell variable names.
825 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
826 as_fn_error $? "invalid feature name: $ac_useropt"
827 ac_useropt_orig=$ac_useropt
828 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
829 case $ac_user_opts in
830 *"
831 "enable_$ac_useropt"
832 "*) ;;
833 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
834 ac_unrecognized_sep=', ';;
835 esac
836 eval enable_$ac_useropt=\$ac_optarg ;;
837
838 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
839 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
840 | --exec | --exe | --ex)
841 ac_prev=exec_prefix ;;
842 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
843 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
844 | --exec=* | --exe=* | --ex=*)
845 exec_prefix=$ac_optarg ;;
846
847 -gas | --gas | --ga | --g)
848 # Obsolete; use --with-gas.
849 with_gas=yes ;;
850
851 -help | --help | --hel | --he | -h)
852 ac_init_help=long ;;
853 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
854 ac_init_help=recursive ;;
855 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
856 ac_init_help=short ;;
857
858 -host | --host | --hos | --ho)
859 ac_prev=host_alias ;;
860 -host=* | --host=* | --hos=* | --ho=*)
861 host_alias=$ac_optarg ;;
862
863 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
864 ac_prev=htmldir ;;
865 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
866 | --ht=*)
867 htmldir=$ac_optarg ;;
868
869 -includedir | --includedir | --includedi | --included | --include \
870 | --includ | --inclu | --incl | --inc)
871 ac_prev=includedir ;;
872 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
873 | --includ=* | --inclu=* | --incl=* | --inc=*)
874 includedir=$ac_optarg ;;
875
876 -infodir | --infodir | --infodi | --infod | --info | --inf)
877 ac_prev=infodir ;;
878 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
879 infodir=$ac_optarg ;;
880
881 -libdir | --libdir | --libdi | --libd)
882 ac_prev=libdir ;;
883 -libdir=* | --libdir=* | --libdi=* | --libd=*)
884 libdir=$ac_optarg ;;
885
886 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
887 | --libexe | --libex | --libe)
888 ac_prev=libexecdir ;;
889 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
890 | --libexe=* | --libex=* | --libe=*)
891 libexecdir=$ac_optarg ;;
892
893 -localedir | --localedir | --localedi | --localed | --locale)
894 ac_prev=localedir ;;
895 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
896 localedir=$ac_optarg ;;
897
898 -localstatedir | --localstatedir | --localstatedi | --localstated \
899 | --localstate | --localstat | --localsta | --localst | --locals)
900 ac_prev=localstatedir ;;
901 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
902 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
903 localstatedir=$ac_optarg ;;
904
905 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
906 ac_prev=mandir ;;
907 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
908 mandir=$ac_optarg ;;
909
910 -nfp | --nfp | --nf)
911 # Obsolete; use --without-fp.
912 with_fp=no ;;
913
914 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
915 | --no-cr | --no-c | -n)
916 no_create=yes ;;
917
918 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
919 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
920 no_recursion=yes ;;
921
922 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
923 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
924 | --oldin | --oldi | --old | --ol | --o)
925 ac_prev=oldincludedir ;;
926 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
927 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
928 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
929 oldincludedir=$ac_optarg ;;
930
931 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
932 ac_prev=prefix ;;
933 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
934 prefix=$ac_optarg ;;
935
936 -program-prefix | --program-prefix | --program-prefi | --program-pref \
937 | --program-pre | --program-pr | --program-p)
938 ac_prev=program_prefix ;;
939 -program-prefix=* | --program-prefix=* | --program-prefi=* \
940 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
941 program_prefix=$ac_optarg ;;
942
943 -program-suffix | --program-suffix | --program-suffi | --program-suff \
944 | --program-suf | --program-su | --program-s)
945 ac_prev=program_suffix ;;
946 -program-suffix=* | --program-suffix=* | --program-suffi=* \
947 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
948 program_suffix=$ac_optarg ;;
949
950 -program-transform-name | --program-transform-name \
951 | --program-transform-nam | --program-transform-na \
952 | --program-transform-n | --program-transform- \
953 | --program-transform | --program-transfor \
954 | --program-transfo | --program-transf \
955 | --program-trans | --program-tran \
956 | --progr-tra | --program-tr | --program-t)
957 ac_prev=program_transform_name ;;
958 -program-transform-name=* | --program-transform-name=* \
959 | --program-transform-nam=* | --program-transform-na=* \
960 | --program-transform-n=* | --program-transform-=* \
961 | --program-transform=* | --program-transfor=* \
962 | --program-transfo=* | --program-transf=* \
963 | --program-trans=* | --program-tran=* \
964 | --progr-tra=* | --program-tr=* | --program-t=*)
965 program_transform_name=$ac_optarg ;;
966
967 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
968 ac_prev=pdfdir ;;
969 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
970 pdfdir=$ac_optarg ;;
971
972 -psdir | --psdir | --psdi | --psd | --ps)
973 ac_prev=psdir ;;
974 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
975 psdir=$ac_optarg ;;
976
977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
978 | -silent | --silent | --silen | --sile | --sil)
979 silent=yes ;;
980
981 -runstatedir | --runstatedir | --runstatedi | --runstated \
982 | --runstate | --runstat | --runsta | --runst | --runs \
983 | --run | --ru | --r)
984 ac_prev=runstatedir ;;
985 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
986 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
987 | --run=* | --ru=* | --r=*)
988 runstatedir=$ac_optarg ;;
989
990 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991 ac_prev=sbindir ;;
992 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993 | --sbi=* | --sb=*)
994 sbindir=$ac_optarg ;;
995
996 -sharedstatedir | --sharedstatedir | --sharedstatedi \
997 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998 | --sharedst | --shareds | --shared | --share | --shar \
999 | --sha | --sh)
1000 ac_prev=sharedstatedir ;;
1001 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004 | --sha=* | --sh=*)
1005 sharedstatedir=$ac_optarg ;;
1006
1007 -site | --site | --sit)
1008 ac_prev=site ;;
1009 -site=* | --site=* | --sit=*)
1010 site=$ac_optarg ;;
1011
1012 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013 ac_prev=srcdir ;;
1014 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015 srcdir=$ac_optarg ;;
1016
1017 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018 | --syscon | --sysco | --sysc | --sys | --sy)
1019 ac_prev=sysconfdir ;;
1020 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022 sysconfdir=$ac_optarg ;;
1023
1024 -target | --target | --targe | --targ | --tar | --ta | --t)
1025 ac_prev=target_alias ;;
1026 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027 target_alias=$ac_optarg ;;
1028
1029 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1030 verbose=yes ;;
1031
1032 -version | --version | --versio | --versi | --vers | -V)
1033 ac_init_version=: ;;
1034
1035 -with-* | --with-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error $? "invalid package name: $ac_useropt"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044 "with_$ac_useropt"
1045 "*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval with_$ac_useropt=\$ac_optarg ;;
1050
1051 -without-* | --without-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid package name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060 "with_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval with_$ac_useropt=no ;;
1066
1067 --x)
1068 # Obsolete; use --with-x.
1069 with_x=yes ;;
1070
1071 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1072 | --x-incl | --x-inc | --x-in | --x-i)
1073 ac_prev=x_includes ;;
1074 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1075 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1076 x_includes=$ac_optarg ;;
1077
1078 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1079 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1080 ac_prev=x_libraries ;;
1081 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1082 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1083 x_libraries=$ac_optarg ;;
1084
1085 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1086 Try \`$0 --help' for more information"
1087 ;;
1088
1089 *=*)
1090 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1091 # Reject names that are not valid shell variable names.
1092 case $ac_envvar in #(
1093 '' | [0-9]* | *[!_$as_cr_alnum]* )
1094 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1095 esac
1096 eval $ac_envvar=\$ac_optarg
1097 export $ac_envvar ;;
1098
1099 *)
1100 # FIXME: should be removed in autoconf 3.0.
1101 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1102 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1104 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1105 ;;
1106
1107 esac
1108 done
1109
1110 if test -n "$ac_prev"; then
1111 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1112 as_fn_error $? "missing argument to $ac_option"
1113 fi
1114
1115 if test -n "$ac_unrecognized_opts"; then
1116 case $enable_option_checking in
1117 no) ;;
1118 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1119 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1120 esac
1121 fi
1122
1123 # Check all directory arguments for consistency.
1124 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1125 datadir sysconfdir sharedstatedir localstatedir includedir \
1126 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1127 libdir localedir mandir runstatedir
1128 do
1129 eval ac_val=\$$ac_var
1130 # Remove trailing slashes.
1131 case $ac_val in
1132 */ )
1133 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1134 eval $ac_var=\$ac_val;;
1135 esac
1136 # Be sure to have absolute directory names.
1137 case $ac_val in
1138 [\\/$]* | ?:[\\/]* ) continue;;
1139 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140 esac
1141 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1142 done
1143
1144 # There might be people who depend on the old broken behavior: `$host'
1145 # used to hold the argument of --host etc.
1146 # FIXME: To remove some day.
1147 build=$build_alias
1148 host=$host_alias
1149 target=$target_alias
1150
1151 # FIXME: To remove some day.
1152 if test "x$host_alias" != x; then
1153 if test "x$build_alias" = x; then
1154 cross_compiling=maybe
1155 elif test "x$build_alias" != "x$host_alias"; then
1156 cross_compiling=yes
1157 fi
1158 fi
1159
1160 ac_tool_prefix=
1161 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1162
1163 test "$silent" = yes && exec 6>/dev/null
1164
1165
1166 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1167 ac_ls_di=`ls -di .` &&
1168 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1169 as_fn_error $? "working directory cannot be determined"
1170 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171 as_fn_error $? "pwd does not report name of working directory"
1172
1173
1174 # Find the source files, if location was not specified.
1175 if test -z "$srcdir"; then
1176 ac_srcdir_defaulted=yes
1177 # Try the directory containing this script, then the parent directory.
1178 ac_confdir=`$as_dirname -- "$as_myself" ||
1179 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1180 X"$as_myself" : 'X\(//\)[^/]' \| \
1181 X"$as_myself" : 'X\(//\)$' \| \
1182 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1183 $as_echo X"$as_myself" |
1184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1185 s//\1/
1186 q
1187 }
1188 /^X\(\/\/\)[^/].*/{
1189 s//\1/
1190 q
1191 }
1192 /^X\(\/\/\)$/{
1193 s//\1/
1194 q
1195 }
1196 /^X\(\/\).*/{
1197 s//\1/
1198 q
1199 }
1200 s/.*/./; q'`
1201 srcdir=$ac_confdir
1202 if test ! -r "$srcdir/$ac_unique_file"; then
1203 srcdir=..
1204 fi
1205 else
1206 ac_srcdir_defaulted=no
1207 fi
1208 if test ! -r "$srcdir/$ac_unique_file"; then
1209 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1210 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1211 fi
1212 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1213 ac_abs_confdir=`(
1214 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1215 pwd)`
1216 # When building in place, set srcdir=.
1217 if test "$ac_abs_confdir" = "$ac_pwd"; then
1218 srcdir=.
1219 fi
1220 # Remove unnecessary trailing slashes from srcdir.
1221 # Double slashes in file names in object file debugging info
1222 # mess up M-x gdb in Emacs.
1223 case $srcdir in
1224 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1225 esac
1226 for ac_var in $ac_precious_vars; do
1227 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_env_${ac_var}_value=\$${ac_var}
1229 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1230 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1231 done
1232
1233 #
1234 # Report the --help message.
1235 #
1236 if test "$ac_init_help" = "long"; then
1237 # Omit some internal or obsolete options to make the list less imposing.
1238 # This message is too long to be a string in the A/UX 3.1 sh.
1239 cat <<_ACEOF
1240 \`configure' configures polyclip 1.9-1 to adapt to many kinds of systems.
1241
1242 Usage: $0 [OPTION]... [VAR=VALUE]...
1243
1244 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1245 VAR=VALUE. See below for descriptions of some of the useful variables.
1246
1247 Defaults for the options are specified in brackets.
1248
1249 Configuration:
1250 -h, --help display this help and exit
1251 --help=short display options specific to this package
1252 --help=recursive display the short help of all the included packages
1253 -V, --version display version information and exit
1254 -q, --quiet, --silent do not print \`checking ...' messages
1255 --cache-file=FILE cache test results in FILE [disabled]
1256 -C, --config-cache alias for \`--cache-file=config.cache'
1257 -n, --no-create do not create output files
1258 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1259
1260 Installation directories:
1261 --prefix=PREFIX install architecture-independent files in PREFIX
1262 [$ac_default_prefix]
1263 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1264 [PREFIX]
1265
1266 By default, \`make install' will install all the files in
1267 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1268 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1269 for instance \`--prefix=\$HOME'.
1270
1271 For better control, use the options below.
1272
1273 Fine tuning of the installation directories:
1274 --bindir=DIR user executables [EPREFIX/bin]
1275 --sbindir=DIR system admin executables [EPREFIX/sbin]
1276 --libexecdir=DIR program executables [EPREFIX/libexec]
1277 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1278 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1279 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1280 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/polyclip]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
1294 _ACEOF
1295
1296 cat <<\_ACEOF
1297 _ACEOF
1298 fi
1299
1300 if test -n "$ac_init_help"; then
1301 case $ac_init_help in
1302 short | recursive ) echo "Configuration of polyclip 1.9-1:";;
1303 esac
1304 cat <<\_ACEOF
1305
1306 Some influential environment variables:
1307 CXX C++ compiler command
1308 CXXFLAGS C++ compiler flags
1309 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1310 nonstandard directory <lib dir>
1311 LIBS libraries to pass to the linker, e.g. -l<library>
1312 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1313 you have headers in a nonstandard directory <include dir>
1314 CXXCPP C++ preprocessor
1315
1316 Use these variables to override the choices made by `configure' or to help
1317 it to find libraries and programs with nonstandard names/locations.
1318
1319 Report bugs to the package provider.
1320 _ACEOF
1321 ac_status=$?
1322 fi
1323
1324 if test "$ac_init_help" = "recursive"; then
1325 # If there are subdirs, report their specific --help.
1326 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1327 test -d "$ac_dir" ||
1328 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1329 continue
1330 ac_builddir=.
1331
1332 case "$ac_dir" in
1333 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1334 *)
1335 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1336 # A ".." for each directory in $ac_dir_suffix.
1337 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1338 case $ac_top_builddir_sub in
1339 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1340 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1341 esac ;;
1342 esac
1343 ac_abs_top_builddir=$ac_pwd
1344 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1345 # for backward compatibility:
1346 ac_top_builddir=$ac_top_build_prefix
1347
1348 case $srcdir in
1349 .) # We are building in place.
1350 ac_srcdir=.
1351 ac_top_srcdir=$ac_top_builddir_sub
1352 ac_abs_top_srcdir=$ac_pwd ;;
1353 [\\/]* | ?:[\\/]* ) # Absolute name.
1354 ac_srcdir=$srcdir$ac_dir_suffix;
1355 ac_top_srcdir=$srcdir
1356 ac_abs_top_srcdir=$srcdir ;;
1357 *) # Relative name.
1358 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1359 ac_top_srcdir=$ac_top_build_prefix$srcdir
1360 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1361 esac
1362 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1363
1364 cd "$ac_dir" || { ac_status=$?; continue; }
1365 # Check for guested configure.
1366 if test -f "$ac_srcdir/configure.gnu"; then
1367 echo &&
1368 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1369 elif test -f "$ac_srcdir/configure"; then
1370 echo &&
1371 $SHELL "$ac_srcdir/configure" --help=recursive
1372 else
1373 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1374 fi || ac_status=$?
1375 cd "$ac_pwd" || { ac_status=$?; break; }
1376 done
1377 fi
1378
1379 test -n "$ac_init_help" && exit $ac_status
1380 if $ac_init_version; then
1381 cat <<\_ACEOF
1382 polyclip configure 1.9-1
1383 generated by GNU Autoconf 2.69
1384
1385 Copyright (C) 2012 Free Software Foundation, Inc.
1386 This configure script is free software; the Free Software Foundation
1387 gives unlimited permission to copy, distribute and modify it.
1388 _ACEOF
1389 exit
1390 fi
1391
1392 ## ------------------------ ##
1393 ## Autoconf initialization. ##
1394 ## ------------------------ ##
1395
1396 # ac_fn_cxx_try_compile LINENO
1397 # ----------------------------
1398 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1399 ac_fn_cxx_try_compile ()
1400 {
1401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1402 rm -f conftest.$ac_objext
1403 if { { ac_try="$ac_compile"
1404 case "(($ac_try" in
1405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1406 *) ac_try_echo=$ac_try;;
1407 esac
1408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1409 $as_echo "$ac_try_echo"; } >&5
1410 (eval "$ac_compile") 2>conftest.err
1411 ac_status=$?
1412 if test -s conftest.err; then
1413 grep -v '^ *+' conftest.err >conftest.er1
1414 cat conftest.er1 >&5
1415 mv -f conftest.er1 conftest.err
1416 fi
1417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1418 test $ac_status = 0; } && {
1419 test -z "$ac_cxx_werror_flag" ||
1420 test ! -s conftest.err
1421 } && test -s conftest.$ac_objext; then :
1422 ac_retval=0
1423 else
1424 $as_echo "$as_me: failed program was:" >&5
1425 sed 's/^/| /' conftest.$ac_ext >&5
1426
1427 ac_retval=1
1428 fi
1429 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1430 as_fn_set_status $ac_retval
1431
1432 } # ac_fn_cxx_try_compile
1433
1434 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1435 # ---------------------------------------------
1436 # Tests whether TYPE exists after having included INCLUDES, setting cache
1437 # variable VAR accordingly.
1438 ac_fn_cxx_check_type ()
1439 {
1440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1442 $as_echo_n "checking for $2... " >&6; }
1443 if eval \${$3+:} false; then :
1444 $as_echo_n "(cached) " >&6
1445 else
1446 eval "$3=no"
1447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1448 /* end confdefs.h. */
1449 $4
1450 int
1451 main ()
1452 {
1453 if (sizeof ($2))
1454 return 0;
1455 ;
1456 return 0;
1457 }
1458 _ACEOF
1459 if ac_fn_cxx_try_compile "$LINENO"; then :
1460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1461 /* end confdefs.h. */
1462 $4
1463 int
1464 main ()
1465 {
1466 if (sizeof (($2)))
1467 return 0;
1468 ;
1469 return 0;
1470 }
1471 _ACEOF
1472 if ac_fn_cxx_try_compile "$LINENO"; then :
1473
1474 else
1475 eval "$3=yes"
1476 fi
1477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1478 fi
1479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1480 fi
1481 eval ac_res=\$$3
1482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1483 $as_echo "$ac_res" >&6; }
1484 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1485
1486 } # ac_fn_cxx_check_type
1487
1488 # ac_fn_cxx_try_cpp LINENO
1489 # ------------------------
1490 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1491 ac_fn_cxx_try_cpp ()
1492 {
1493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1494 if { { ac_try="$ac_cpp conftest.$ac_ext"
1495 case "(($ac_try" in
1496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1497 *) ac_try_echo=$ac_try;;
1498 esac
1499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1500 $as_echo "$ac_try_echo"; } >&5
1501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1502 ac_status=$?
1503 if test -s conftest.err; then
1504 grep -v '^ *+' conftest.err >conftest.er1
1505 cat conftest.er1 >&5
1506 mv -f conftest.er1 conftest.err
1507 fi
1508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1509 test $ac_status = 0; } > conftest.i && {
1510 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1511 test ! -s conftest.err
1512 }; then :
1513 ac_retval=0
1514 else
1515 $as_echo "$as_me: failed program was:" >&5
1516 sed 's/^/| /' conftest.$ac_ext >&5
1517
1518 ac_retval=1
1519 fi
1520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1521 as_fn_set_status $ac_retval
1522
1523 } # ac_fn_cxx_try_cpp
1524
1525 # ac_fn_cxx_try_run LINENO
1526 # ------------------------
1527 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1528 # that executables *can* be run.
1529 ac_fn_cxx_try_run ()
1530 {
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 if { { ac_try="$ac_link"
1533 case "(($ac_try" in
1534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535 *) ac_try_echo=$ac_try;;
1536 esac
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539 (eval "$ac_link") 2>&5
1540 ac_status=$?
1541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1543 { { case "(($ac_try" in
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1546 esac
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 $as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_try") 2>&5
1550 ac_status=$?
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; }; }; then :
1553 ac_retval=0
1554 else
1555 $as_echo "$as_me: program exited with status $ac_status" >&5
1556 $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1558
1559 ac_retval=$ac_status
1560 fi
1561 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563 as_fn_set_status $ac_retval
1564
1565 } # ac_fn_cxx_try_run
1566
1567 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1568 # ---------------------------------------------------------
1569 # Tests whether HEADER exists and can be compiled using the include files in
1570 # INCLUDES, setting the cache variable VAR accordingly.
1571 ac_fn_cxx_check_header_compile ()
1572 {
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1575 $as_echo_n "checking for $2... " >&6; }
1576 if eval \${$3+:} false; then :
1577 $as_echo_n "(cached) " >&6
1578 else
1579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1580 /* end confdefs.h. */
1581 $4
1582 #include <$2>
1583 _ACEOF
1584 if ac_fn_cxx_try_compile "$LINENO"; then :
1585 eval "$3=yes"
1586 else
1587 eval "$3=no"
1588 fi
1589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1590 fi
1591 eval ac_res=\$$3
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1593 $as_echo "$ac_res" >&6; }
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595
1596 } # ac_fn_cxx_check_header_compile
1597 cat >config.log <<_ACEOF
1598 This file contains any messages produced by compilers while
1599 running configure, to aid debugging if configure makes a mistake.
1600
1601 It was created by polyclip $as_me 1.9-1, which was
1602 generated by GNU Autoconf 2.69. Invocation command line was
1603
1604 $ $0 $@
1605
1606 _ACEOF
1607 exec 5>>config.log
1608 {
1609 cat <<_ASUNAME
1610 ## --------- ##
1611 ## Platform. ##
1612 ## --------- ##
1613
1614 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1615 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1616 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1617 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1618 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1619
1620 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1621 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1622
1623 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1624 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1625 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1626 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1627 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1628 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1629 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1630
1631 _ASUNAME
1632
1633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 for as_dir in $PATH
1635 do
1636 IFS=$as_save_IFS
1637 test -z "$as_dir" && as_dir=.
1638 $as_echo "PATH: $as_dir"
1639 done
1640 IFS=$as_save_IFS
1641
1642 } >&5
1643
1644 cat >&5 <<_ACEOF
1645
1646
1647 ## ----------- ##
1648 ## Core tests. ##
1649 ## ----------- ##
1650
1651 _ACEOF
1652
1653
1654 # Keep a trace of the command line.
1655 # Strip out --no-create and --no-recursion so they do not pile up.
1656 # Strip out --silent because we don't want to record it for future runs.
1657 # Also quote any args containing shell meta-characters.
1658 # Make two passes to allow for proper duplicate-argument suppression.
1659 ac_configure_args=
1660 ac_configure_args0=
1661 ac_configure_args1=
1662 ac_must_keep_next=false
1663 for ac_pass in 1 2
1664 do
1665 for ac_arg
1666 do
1667 case $ac_arg in
1668 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1670 | -silent | --silent | --silen | --sile | --sil)
1671 continue ;;
1672 *\'*)
1673 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1674 esac
1675 case $ac_pass in
1676 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1677 2)
1678 as_fn_append ac_configure_args1 " '$ac_arg'"
1679 if test $ac_must_keep_next = true; then
1680 ac_must_keep_next=false # Got value, back to normal.
1681 else
1682 case $ac_arg in
1683 *=* | --config-cache | -C | -disable-* | --disable-* \
1684 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1685 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1686 | -with-* | --with-* | -without-* | --without-* | --x)
1687 case "$ac_configure_args0 " in
1688 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1689 esac
1690 ;;
1691 -* ) ac_must_keep_next=true ;;
1692 esac
1693 fi
1694 as_fn_append ac_configure_args " '$ac_arg'"
1695 ;;
1696 esac
1697 done
1698 done
1699 { ac_configure_args0=; unset ac_configure_args0;}
1700 { ac_configure_args1=; unset ac_configure_args1;}
1701
1702 # When interrupted or exit'd, cleanup temporary files, and complete
1703 # config.log. We remove comments because anyway the quotes in there
1704 # would cause problems or look ugly.
1705 # WARNING: Use '\'' to represent an apostrophe within the trap.
1706 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1707 trap 'exit_status=$?
1708 # Save into config.log some information that might help in debugging.
1709 {
1710 echo
1711
1712 $as_echo "## ---------------- ##
1713 ## Cache variables. ##
1714 ## ---------------- ##"
1715 echo
1716 # The following way of writing the cache mishandles newlines in values,
1717 (
1718 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1719 eval ac_val=\$$ac_var
1720 case $ac_val in #(
1721 *${as_nl}*)
1722 case $ac_var in #(
1723 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1724 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1725 esac
1726 case $ac_var in #(
1727 _ | IFS | as_nl) ;; #(
1728 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1729 *) { eval $ac_var=; unset $ac_var;} ;;
1730 esac ;;
1731 esac
1732 done
1733 (set) 2>&1 |
1734 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1735 *${as_nl}ac_space=\ *)
1736 sed -n \
1737 "s/'\''/'\''\\\\'\'''\''/g;
1738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1739 ;; #(
1740 *)
1741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1742 ;;
1743 esac |
1744 sort
1745 )
1746 echo
1747
1748 $as_echo "## ----------------- ##
1749 ## Output variables. ##
1750 ## ----------------- ##"
1751 echo
1752 for ac_var in $ac_subst_vars
1753 do
1754 eval ac_val=\$$ac_var
1755 case $ac_val in
1756 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 esac
1758 $as_echo "$ac_var='\''$ac_val'\''"
1759 done | sort
1760 echo
1761
1762 if test -n "$ac_subst_files"; then
1763 $as_echo "## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##"
1766 echo
1767 for ac_var in $ac_subst_files
1768 do
1769 eval ac_val=\$$ac_var
1770 case $ac_val in
1771 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772 esac
1773 $as_echo "$ac_var='\''$ac_val'\''"
1774 done | sort
1775 echo
1776 fi
1777
1778 if test -s confdefs.h; then
1779 $as_echo "## ----------- ##
1780 ## confdefs.h. ##
1781 ## ----------- ##"
1782 echo
1783 cat confdefs.h
1784 echo
1785 fi
1786 test "$ac_signal" != 0 &&
1787 $as_echo "$as_me: caught signal $ac_signal"
1788 $as_echo "$as_me: exit $exit_status"
1789 } >&5
1790 rm -f core *.core core.conftest.* &&
1791 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1792 exit $exit_status
1793 ' 0
1794 for ac_signal in 1 2 13 15; do
1795 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1796 done
1797 ac_signal=0
1798
1799 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1800 rm -f -r conftest* confdefs.h
1801
1802 $as_echo "/* confdefs.h */" > confdefs.h
1803
1804 # Predefined preprocessor variables.
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_NAME "$PACKAGE_NAME"
1808 _ACEOF
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1812 _ACEOF
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1816 _ACEOF
1817
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_STRING "$PACKAGE_STRING"
1820 _ACEOF
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1824 _ACEOF
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_URL "$PACKAGE_URL"
1828 _ACEOF
1829
1830
1831 # Let the site file select an alternate cache file if it wants to.
1832 # Prefer an explicitly selected file to automatically selected ones.
1833 ac_site_file1=NONE
1834 ac_site_file2=NONE
1835 if test -n "$CONFIG_SITE"; then
1836 # We do not want a PATH search for config.site.
1837 case $CONFIG_SITE in #((
1838 -*) ac_site_file1=./$CONFIG_SITE;;
1839 */*) ac_site_file1=$CONFIG_SITE;;
1840 *) ac_site_file1=./$CONFIG_SITE;;
1841 esac
1842 elif test "x$prefix" != xNONE; then
1843 ac_site_file1=$prefix/share/config.site
1844 ac_site_file2=$prefix/etc/config.site
1845 else
1846 ac_site_file1=$ac_default_prefix/share/config.site
1847 ac_site_file2=$ac_default_prefix/etc/config.site
1848 fi
1849 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1850 do
1851 test "x$ac_site_file" = xNONE && continue
1852 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1854 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1855 sed 's/^/| /' "$ac_site_file" >&5
1856 . "$ac_site_file" \
1857 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1859 as_fn_error $? "failed to load site script $ac_site_file
1860 See \`config.log' for more details" "$LINENO" 5; }
1861 fi
1862 done
1863
1864 if test -r "$cache_file"; then
1865 # Some versions of bash will fail to source /dev/null (special files
1866 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1867 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1869 $as_echo "$as_me: loading cache $cache_file" >&6;}
1870 case $cache_file in
1871 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1872 *) . "./$cache_file";;
1873 esac
1874 fi
1875 else
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1877 $as_echo "$as_me: creating cache $cache_file" >&6;}
1878 >$cache_file
1879 fi
1880
1881 # Check that the precious variables saved in the cache have kept the same
1882 # value.
1883 ac_cache_corrupted=false
1884 for ac_var in $ac_precious_vars; do
1885 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1886 eval ac_new_set=\$ac_env_${ac_var}_set
1887 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1888 eval ac_new_val=\$ac_env_${ac_var}_value
1889 case $ac_old_set,$ac_new_set in
1890 set,)
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1892 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1893 ac_cache_corrupted=: ;;
1894 ,set)
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1896 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1897 ac_cache_corrupted=: ;;
1898 ,);;
1899 *)
1900 if test "x$ac_old_val" != "x$ac_new_val"; then
1901 # differences in whitespace do not lead to failure.
1902 ac_old_val_w=`echo x $ac_old_val`
1903 ac_new_val_w=`echo x $ac_new_val`
1904 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1906 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1907 ac_cache_corrupted=:
1908 else
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1910 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1911 eval $ac_var=\$ac_old_val
1912 fi
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1914 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1916 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1917 fi;;
1918 esac
1919 # Pass precious variables to config.status.
1920 if test "$ac_new_set" = set; then
1921 case $ac_new_val in
1922 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1923 *) ac_arg=$ac_var=$ac_new_val ;;
1924 esac
1925 case " $ac_configure_args " in
1926 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1927 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1928 esac
1929 fi
1930 done
1931 if $ac_cache_corrupted; then
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1935 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1936 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1937 fi
1938 ## -------------------- ##
1939 ## Main body of script. ##
1940 ## -------------------- ##
1941
1942 ac_ext=c
1943 ac_cpp='$CPP $CPPFLAGS'
1944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947
1948
1949 CXXFLAGS=`"${R_HOME}/bin/R" CMD config CXXFLAGS`
1950 CPPFLAGS=`"${R_HOME}/bin/R" CMD config CPPFLAGS`
1951 ac_ext=cpp
1952 ac_cpp='$CXXCPP $CPPFLAGS'
1953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1956 if test -z "$CXX"; then
1957 if test -n "$CCC"; then
1958 CXX=$CCC
1959 else
1960 if test -n "$ac_tool_prefix"; then
1961 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1962 do
1963 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1964 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1966 $as_echo_n "checking for $ac_word... " >&6; }
1967 if ${ac_cv_prog_CXX+:} false; then :
1968 $as_echo_n "(cached) " >&6
1969 else
1970 if test -n "$CXX"; then
1971 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1972 else
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1975 do
1976 IFS=$as_save_IFS
1977 test -z "$as_dir" && as_dir=.
1978 for ac_exec_ext in '' $ac_executable_extensions; do
1979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1982 break 2
1983 fi
1984 done
1985 done
1986 IFS=$as_save_IFS
1987
1988 fi
1989 fi
1990 CXX=$ac_cv_prog_CXX
1991 if test -n "$CXX"; then
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
1993 $as_echo "$CXX" >&6; }
1994 else
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1996 $as_echo "no" >&6; }
1997 fi
1998
1999
2000 test -n "$CXX" && break
2001 done
2002 fi
2003 if test -z "$CXX"; then
2004 ac_ct_CXX=$CXX
2005 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2006 do
2007 # Extract the first word of "$ac_prog", so it can be a program name with args.
2008 set dummy $ac_prog; ac_word=$2
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2010 $as_echo_n "checking for $ac_word... " >&6; }
2011 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 if test -n "$ac_ct_CXX"; then
2015 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2016 else
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2019 do
2020 IFS=$as_save_IFS
2021 test -z "$as_dir" && as_dir=.
2022 for ac_exec_ext in '' $ac_executable_extensions; do
2023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024 ac_cv_prog_ac_ct_CXX="$ac_prog"
2025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 break 2
2027 fi
2028 done
2029 done
2030 IFS=$as_save_IFS
2031
2032 fi
2033 fi
2034 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2035 if test -n "$ac_ct_CXX"; then
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2037 $as_echo "$ac_ct_CXX" >&6; }
2038 else
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2040 $as_echo "no" >&6; }
2041 fi
2042
2043
2044 test -n "$ac_ct_CXX" && break
2045 done
2046
2047 if test "x$ac_ct_CXX" = x; then
2048 CXX="g++"
2049 else
2050 case $cross_compiling:$ac_tool_warned in
2051 yes:)
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2054 ac_tool_warned=yes ;;
2055 esac
2056 CXX=$ac_ct_CXX
2057 fi
2058 fi
2059
2060 fi
2061 fi
2062 # Provide some information about the compiler.
2063 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2064 set X $ac_compile
2065 ac_compiler=$2
2066 for ac_option in --version -v -V -qversion; do
2067 { { ac_try="$ac_compiler $ac_option >&5"
2068 case "(($ac_try" in
2069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070 *) ac_try_echo=$ac_try;;
2071 esac
2072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2073 $as_echo "$ac_try_echo"; } >&5
2074 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2075 ac_status=$?
2076 if test -s conftest.err; then
2077 sed '10a\
2078 ... rest of stderr output deleted ...
2079 10q' conftest.err >conftest.er1
2080 cat conftest.er1 >&5
2081 fi
2082 rm -f conftest.er1 conftest.err
2083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2084 test $ac_status = 0; }
2085 done
2086
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089
2090 int
2091 main ()
2092 {
2093
2094 ;
2095 return 0;
2096 }
2097 _ACEOF
2098 ac_clean_files_save=$ac_clean_files
2099 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2100 # Try to create an executable without -o first, disregard a.out.
2101 # It will help us diagnose broken compilers, and finding out an intuition
2102 # of exeext.
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2104 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2105 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2106
2107 # The possible output files:
2108 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2109
2110 ac_rmfiles=
2111 for ac_file in $ac_files
2112 do
2113 case $ac_file in
2114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2115 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2116 esac
2117 done
2118 rm -f $ac_rmfiles
2119
2120 if { { ac_try="$ac_link_default"
2121 case "(($ac_try" in
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2124 esac
2125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2126 $as_echo "$ac_try_echo"; } >&5
2127 (eval "$ac_link_default") 2>&5
2128 ac_status=$?
2129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130 test $ac_status = 0; }; then :
2131 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2132 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2133 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2134 # so that the user can short-circuit this test for compilers unknown to
2135 # Autoconf.
2136 for ac_file in $ac_files ''
2137 do
2138 test -f "$ac_file" || continue
2139 case $ac_file in
2140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2141 ;;
2142 [ab].out )
2143 # We found the default executable, but exeext='' is most
2144 # certainly right.
2145 break;;
2146 *.* )
2147 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2148 then :; else
2149 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2150 fi
2151 # We set ac_cv_exeext here because the later test for it is not
2152 # safe: cross compilers may not add the suffix if given an `-o'
2153 # argument, so we may need to know it at that point already.
2154 # Even if this section looks crufty: it has the advantage of
2155 # actually working.
2156 break;;
2157 * )
2158 break;;
2159 esac
2160 done
2161 test "$ac_cv_exeext" = no && ac_cv_exeext=
2162
2163 else
2164 ac_file=''
2165 fi
2166 if test -z "$ac_file"; then :
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2168 $as_echo "no" >&6; }
2169 $as_echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2171
2172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2174 as_fn_error 77 "C++ compiler cannot create executables
2175 See \`config.log' for more details" "$LINENO" 5; }
2176 else
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2178 $as_echo "yes" >&6; }
2179 fi
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2181 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2183 $as_echo "$ac_file" >&6; }
2184 ac_exeext=$ac_cv_exeext
2185
2186 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2187 ac_clean_files=$ac_clean_files_save
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2189 $as_echo_n "checking for suffix of executables... " >&6; }
2190 if { { ac_try="$ac_link"
2191 case "(($ac_try" in
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2194 esac
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197 (eval "$ac_link") 2>&5
2198 ac_status=$?
2199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2200 test $ac_status = 0; }; then :
2201 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2202 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2203 # work properly (i.e., refer to `conftest.exe'), while it won't with
2204 # `rm'.
2205 for ac_file in conftest.exe conftest conftest.*; do
2206 test -f "$ac_file" || continue
2207 case $ac_file in
2208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2209 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2210 break;;
2211 * ) break;;
2212 esac
2213 done
2214 else
2215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2218 See \`config.log' for more details" "$LINENO" 5; }
2219 fi
2220 rm -f conftest conftest$ac_cv_exeext
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2222 $as_echo "$ac_cv_exeext" >&6; }
2223
2224 rm -f conftest.$ac_ext
2225 EXEEXT=$ac_cv_exeext
2226 ac_exeext=$EXEEXT
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2229 #include <stdio.h>
2230 int
2231 main ()
2232 {
2233 FILE *f = fopen ("conftest.out", "w");
2234 return ferror (f) || fclose (f) != 0;
2235
2236 ;
2237 return 0;
2238 }
2239 _ACEOF
2240 ac_clean_files="$ac_clean_files conftest.out"
2241 # Check that the compiler produces executables we can run. If not, either
2242 # the compiler is broken, or we cross compile.
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2244 $as_echo_n "checking whether we are cross compiling... " >&6; }
2245 if test "$cross_compiling" != yes; then
2246 { { ac_try="$ac_link"
2247 case "(($ac_try" in
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2250 esac
2251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2252 $as_echo "$ac_try_echo"; } >&5
2253 (eval "$ac_link") 2>&5
2254 ac_status=$?
2255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2256 test $ac_status = 0; }
2257 if { ac_try='./conftest$ac_cv_exeext'
2258 { { case "(($ac_try" in
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2261 esac
2262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2263 $as_echo "$ac_try_echo"; } >&5
2264 (eval "$ac_try") 2>&5
2265 ac_status=$?
2266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 test $ac_status = 0; }; }; then
2268 cross_compiling=no
2269 else
2270 if test "$cross_compiling" = maybe; then
2271 cross_compiling=yes
2272 else
2273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2275 as_fn_error $? "cannot run C++ compiled programs.
2276 If you meant to cross compile, use \`--host'.
2277 See \`config.log' for more details" "$LINENO" 5; }
2278 fi
2279 fi
2280 fi
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2282 $as_echo "$cross_compiling" >&6; }
2283
2284 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2285 ac_clean_files=$ac_clean_files_save
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2287 $as_echo_n "checking for suffix of object files... " >&6; }
2288 if ${ac_cv_objext+:} false; then :
2289 $as_echo_n "(cached) " >&6
2290 else
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2293
2294 int
2295 main ()
2296 {
2297
2298 ;
2299 return 0;
2300 }
2301 _ACEOF
2302 rm -f conftest.o conftest.obj
2303 if { { ac_try="$ac_compile"
2304 case "(($ac_try" in
2305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2306 *) ac_try_echo=$ac_try;;
2307 esac
2308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2309 $as_echo "$ac_try_echo"; } >&5
2310 (eval "$ac_compile") 2>&5
2311 ac_status=$?
2312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2313 test $ac_status = 0; }; then :
2314 for ac_file in conftest.o conftest.obj conftest.*; do
2315 test -f "$ac_file" || continue;
2316 case $ac_file in
2317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2318 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2319 break;;
2320 esac
2321 done
2322 else
2323 $as_echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2328 as_fn_error $? "cannot compute suffix of object files: cannot compile
2329 See \`config.log' for more details" "$LINENO" 5; }
2330 fi
2331 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2332 fi
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2334 $as_echo "$ac_cv_objext" >&6; }
2335 OBJEXT=$ac_cv_objext
2336 ac_objext=$OBJEXT
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2338 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2339 if ${ac_cv_cxx_compiler_gnu+:} false; then :
2340 $as_echo_n "(cached) " >&6
2341 else
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2344
2345 int
2346 main ()
2347 {
2348 #ifndef __GNUC__
2349 choke me
2350 #endif
2351
2352 ;
2353 return 0;
2354 }
2355 _ACEOF
2356 if ac_fn_cxx_try_compile "$LINENO"; then :
2357 ac_compiler_gnu=yes
2358 else
2359 ac_compiler_gnu=no
2360 fi
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2363
2364 fi
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2366 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2367 if test $ac_compiler_gnu = yes; then
2368 GXX=yes
2369 else
2370 GXX=
2371 fi
2372 ac_test_CXXFLAGS=${CXXFLAGS+set}
2373 ac_save_CXXFLAGS=$CXXFLAGS
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2375 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2376 if ${ac_cv_prog_cxx_g+:} false; then :
2377 $as_echo_n "(cached) " >&6
2378 else
2379 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2380 ac_cxx_werror_flag=yes
2381 ac_cv_prog_cxx_g=no
2382 CXXFLAGS="-g"
2383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h. */
2385
2386 int
2387 main ()
2388 {
2389
2390 ;
2391 return 0;
2392 }
2393 _ACEOF
2394 if ac_fn_cxx_try_compile "$LINENO"; then :
2395 ac_cv_prog_cxx_g=yes
2396 else
2397 CXXFLAGS=""
2398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h. */
2400
2401 int
2402 main ()
2403 {
2404
2405 ;
2406 return 0;
2407 }
2408 _ACEOF
2409 if ac_fn_cxx_try_compile "$LINENO"; then :
2410
2411 else
2412 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2413 CXXFLAGS="-g"
2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415 /* end confdefs.h. */
2416
2417 int
2418 main ()
2419 {
2420
2421 ;
2422 return 0;
2423 }
2424 _ACEOF
2425 if ac_fn_cxx_try_compile "$LINENO"; then :
2426 ac_cv_prog_cxx_g=yes
2427 fi
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429 fi
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 fi
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2434 fi
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2436 $as_echo "$ac_cv_prog_cxx_g" >&6; }
2437 if test "$ac_test_CXXFLAGS" = set; then
2438 CXXFLAGS=$ac_save_CXXFLAGS
2439 elif test $ac_cv_prog_cxx_g = yes; then
2440 if test "$GXX" = yes; then
2441 CXXFLAGS="-g -O2"
2442 else
2443 CXXFLAGS="-g"
2444 fi
2445 else
2446 if test "$GXX" = yes; then
2447 CXXFLAGS="-O2"
2448 else
2449 CXXFLAGS=
2450 fi
2451 fi
2452 ac_ext=c
2453 ac_cpp='$CPP $CPPFLAGS'
2454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2457
2458 ac_ext=cpp
2459 ac_cpp='$CXXCPP $CPPFLAGS'
2460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2463
2464 if test -z "$PKG_CONFIG"; then
2465 if command -v pkgconf 2>&1 > /dev/null; then
2466 PKG_CONFIG=pkgconf
2467 else
2468 if command -v pkg-config 2>&1 > /dev/null; then
2469 PKG_CONFIG=pkg-config
2470 fi
2471 fi
2472 fi
2473 echo "Using PKG_CONFIG: $PKG_CONFIG"
2474 if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists polyclipping; then
2475 echo Compiling against system copy of polyclipping library.
2476 POLYCLIP_LIBS=`$PKG_CONFIG --libs polyclipping`
2477 POLYCLIP_CPPFLAGS=`$PKG_CONFIG --cflags polyclipping`
2478 LLTYPES="-DPOLYCLIP_LONG64=\"signed long long\" -DPOLYCLIP_ULONG64=\"unsigned long long\""
2479 POLYCLIP_CPPFLAGS="${POLYCLIP_CPPFLAGS} ${LLTYPES}"
2480 else
2481 echo Compiling against bundled copy of clipper library.
2482 long64=""
2483 name64="signed 64-bit integers (cInt)"
2484 if test "${CXX1X}" != ""; then
2485 long64="signed long long"
2486 POLYCLIP_LONG64="${long64}"
2487 else
2488
2489 ac_fn_cxx_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "#include <stdint.h>
2490 "
2491 if test "x$ac_cv_type_int64_t" = xyes; then :
2492
2493 cat >>confdefs.h <<_ACEOF
2494 #define HAVE_INT64_T 1
2495 _ACEOF
2496
2497 long64="int64_t"
2498 fi
2499
2500 if test "${long64}" != ""; then
2501 POLYCLIP_LONG64="${long64}"
2502 else
2503 ac_fn_cxx_check_type "$LINENO" "int_fast64_t" "ac_cv_type_int_fast64_t" "#include <stdint.h>
2504 "
2505 if test "x$ac_cv_type_int_fast64_t" = xyes; then :
2506
2507 cat >>confdefs.h <<_ACEOF
2508 #define HAVE_INT_FAST64_T 1
2509 _ACEOF
2510
2511 long64="int_fast64_t"
2512 fi
2513
2514 if test "${long64}" != ""; then
2515 POLYCLIP_LONG64="${long64}"
2516 else
2517 ac_fn_cxx_check_type "$LINENO" "int_least64_t" "ac_cv_type_int_least64_t" "#include <stdint.h>
2518 "
2519 if test "x$ac_cv_type_int_least64_t" = xyes; then :
2520
2521 cat >>confdefs.h <<_ACEOF
2522 #define HAVE_INT_LEAST64_T 1
2523 _ACEOF
2524
2525 long64="int_least64_t"
2526 fi
2527
2528 if test "${long64}" != ""; then
2529 POLYCLIP_LONG64="${long64}"
2530 else
2531 ac_ext=cpp
2532 ac_cpp='$CXXCPP $CPPFLAGS'
2533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
2537 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
2538 if test -z "$CXXCPP"; then
2539 if ${ac_cv_prog_CXXCPP+:} false; then :
2540 $as_echo_n "(cached) " >&6
2541 else
2542 # Double quotes because CXXCPP needs to be expanded
2543 for CXXCPP in "$CXX -E" "/lib/cpp"
2544 do
2545 ac_preproc_ok=false
2546 for ac_cxx_preproc_warn_flag in '' yes
2547 do
2548 # Use a header file that comes with gcc, so configuring glibc
2549 # with a fresh cross-compiler works.
2550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2551 # <limits.h> exists even on freestanding compilers.
2552 # On the NeXT, cc -E runs the code through the compiler's parser,
2553 # not just through cpp. "Syntax error" is here to catch this case.
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 #ifdef __STDC__
2557 # include <limits.h>
2558 #else
2559 # include <assert.h>
2560 #endif
2561 Syntax error
2562 _ACEOF
2563 if ac_fn_cxx_try_cpp "$LINENO"; then :
2564
2565 else
2566 # Broken: fails on valid input.
2567 continue
2568 fi
2569 rm -f conftest.err conftest.i conftest.$ac_ext
2570
2571 # OK, works on sane cases. Now check whether nonexistent headers
2572 # can be detected and how.
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2575 #include <ac_nonexistent.h>
2576 _ACEOF
2577 if ac_fn_cxx_try_cpp "$LINENO"; then :
2578 # Broken: success on invalid input.
2579 continue
2580 else
2581 # Passes both tests.
2582 ac_preproc_ok=:
2583 break
2584 fi
2585 rm -f conftest.err conftest.i conftest.$ac_ext
2586
2587 done
2588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2589 rm -f conftest.i conftest.err conftest.$ac_ext
2590 if $ac_preproc_ok; then :
2591 break
2592 fi
2593
2594 done
2595 ac_cv_prog_CXXCPP=$CXXCPP
2596
2597 fi
2598 CXXCPP=$ac_cv_prog_CXXCPP
2599 else
2600 ac_cv_prog_CXXCPP=$CXXCPP
2601 fi
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
2603 $as_echo "$CXXCPP" >&6; }
2604 ac_preproc_ok=false
2605 for ac_cxx_preproc_warn_flag in '' yes
2606 do
2607 # Use a header file that comes with gcc, so configuring glibc
2608 # with a fresh cross-compiler works.
2609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2610 # <limits.h> exists even on freestanding compilers.
2611 # On the NeXT, cc -E runs the code through the compiler's parser,
2612 # not just through cpp. "Syntax error" is here to catch this case.
2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614 /* end confdefs.h. */
2615 #ifdef __STDC__
2616 # include <limits.h>
2617 #else
2618 # include <assert.h>
2619 #endif
2620 Syntax error
2621 _ACEOF
2622 if ac_fn_cxx_try_cpp "$LINENO"; then :
2623
2624 else
2625 # Broken: fails on valid input.
2626 continue
2627 fi
2628 rm -f conftest.err conftest.i conftest.$ac_ext
2629
2630 # OK, works on sane cases. Now check whether nonexistent headers
2631 # can be detected and how.
2632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2633 /* end confdefs.h. */
2634 #include <ac_nonexistent.h>
2635 _ACEOF
2636 if ac_fn_cxx_try_cpp "$LINENO"; then :
2637 # Broken: success on invalid input.
2638 continue
2639 else
2640 # Passes both tests.
2641 ac_preproc_ok=:
2642 break
2643 fi
2644 rm -f conftest.err conftest.i conftest.$ac_ext
2645
2646 done
2647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2648 rm -f conftest.i conftest.err conftest.$ac_ext
2649 if $ac_preproc_ok; then :
2650
2651 else
2652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2654 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
2655 See \`config.log' for more details" "$LINENO" 5; }
2656 fi
2657
2658 ac_ext=cpp
2659 ac_cpp='$CXXCPP $CPPFLAGS'
2660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2663
2664
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
2666 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2667 if ${ac_cv_path_GREP+:} false; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 if test -z "$GREP"; then
2671 ac_path_GREP_found=false
2672 # Loop through the user's path and test for each of PROGNAME-LIST
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_prog in grep ggrep; do
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2681 as_fn_executable_p "$ac_path_GREP" || continue
2682 # Check for GNU ac_path_GREP and select it if it is found.
2683 # Check for GNU $ac_path_GREP
2684 case `"$ac_path_GREP" --version 2>&1` in
2685 *GNU*)
2686 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2687 *)
2688 ac_count=0
2689 $as_echo_n 0123456789 >"conftest.in"
2690 while :
2691 do
2692 cat "conftest.in" "conftest.in" >"conftest.tmp"
2693 mv "conftest.tmp" "conftest.in"
2694 cp "conftest.in" "conftest.nl"
2695 $as_echo 'GREP' >> "conftest.nl"
2696 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2698 as_fn_arith $ac_count + 1 && ac_count=$as_val
2699 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2700 # Best one so far, save it but keep looking for a better one
2701 ac_cv_path_GREP="$ac_path_GREP"
2702 ac_path_GREP_max=$ac_count
2703 fi
2704 # 10*(2^10) chars as input seems more than enough
2705 test $ac_count -gt 10 && break
2706 done
2707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2708 esac
2709
2710 $ac_path_GREP_found && break 3
2711 done
2712 done
2713 done
2714 IFS=$as_save_IFS
2715 if test -z "$ac_cv_path_GREP"; then
2716 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2717 fi
2718 else
2719 ac_cv_path_GREP=$GREP
2720 fi
2721
2722 fi
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
2724 $as_echo "$ac_cv_path_GREP" >&6; }
2725 GREP="$ac_cv_path_GREP"
2726
2727
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
2729 $as_echo_n "checking for egrep... " >&6; }
2730 if ${ac_cv_path_EGREP+:} false; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2734 then ac_cv_path_EGREP="$GREP -E"
2735 else
2736 if test -z "$EGREP"; then
2737 ac_path_EGREP_found=false
2738 # Loop through the user's path and test for each of PROGNAME-LIST
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2741 do
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_prog in egrep; do
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2747 as_fn_executable_p "$ac_path_EGREP" || continue
2748 # Check for GNU ac_path_EGREP and select it if it is found.
2749 # Check for GNU $ac_path_EGREP
2750 case `"$ac_path_EGREP" --version 2>&1` in
2751 *GNU*)
2752 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2753 *)
2754 ac_count=0
2755 $as_echo_n 0123456789 >"conftest.in"
2756 while :
2757 do
2758 cat "conftest.in" "conftest.in" >"conftest.tmp"
2759 mv "conftest.tmp" "conftest.in"
2760 cp "conftest.in" "conftest.nl"
2761 $as_echo 'EGREP' >> "conftest.nl"
2762 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2764 as_fn_arith $ac_count + 1 && ac_count=$as_val
2765 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2766 # Best one so far, save it but keep looking for a better one
2767 ac_cv_path_EGREP="$ac_path_EGREP"
2768 ac_path_EGREP_max=$ac_count
2769 fi
2770 # 10*(2^10) chars as input seems more than enough
2771 test $ac_count -gt 10 && break
2772 done
2773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2774 esac
2775
2776 $ac_path_EGREP_found && break 3
2777 done
2778 done
2779 done
2780 IFS=$as_save_IFS
2781 if test -z "$ac_cv_path_EGREP"; then
2782 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2783 fi
2784 else
2785 ac_cv_path_EGREP=$EGREP
2786 fi
2787
2788 fi
2789 fi
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
2791 $as_echo "$ac_cv_path_EGREP" >&6; }
2792 EGREP="$ac_cv_path_EGREP"
2793
2794
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
2796 $as_echo_n "checking for ANSI C header files... " >&6; }
2797 if ${ac_cv_header_stdc+:} false; then :
2798 $as_echo_n "(cached) " >&6
2799 else
2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801 /* end confdefs.h. */
2802 #include <stdlib.h>
2803 #include <stdarg.h>
2804 #include <string.h>
2805 #include <float.h>
2806
2807 int
2808 main ()
2809 {
2810
2811 ;
2812 return 0;
2813 }
2814 _ACEOF
2815 if ac_fn_cxx_try_compile "$LINENO"; then :
2816 ac_cv_header_stdc=yes
2817 else
2818 ac_cv_header_stdc=no
2819 fi
2820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2821
2822 if test $ac_cv_header_stdc = yes; then
2823 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h. */
2826 #include <string.h>
2827
2828 _ACEOF
2829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2830 $EGREP "memchr" >/dev/null 2>&1; then :
2831
2832 else
2833 ac_cv_header_stdc=no
2834 fi
2835 rm -f conftest*
2836
2837 fi
2838
2839 if test $ac_cv_header_stdc = yes; then
2840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842 /* end confdefs.h. */
2843 #include <stdlib.h>
2844
2845 _ACEOF
2846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2847 $EGREP "free" >/dev/null 2>&1; then :
2848
2849 else
2850 ac_cv_header_stdc=no
2851 fi
2852 rm -f conftest*
2853
2854 fi
2855
2856 if test $ac_cv_header_stdc = yes; then
2857 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2858 if test "$cross_compiling" = yes; then :
2859 :
2860 else
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h. */
2863 #include <ctype.h>
2864 #include <stdlib.h>
2865 #if ((' ' & 0x0FF) == 0x020)
2866 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2867 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2868 #else
2869 # define ISLOWER(c) \
2870 (('a' <= (c) && (c) <= 'i') \
2871 || ('j' <= (c) && (c) <= 'r') \
2872 || ('s' <= (c) && (c) <= 'z'))
2873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2874 #endif
2875
2876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2877 int
2878 main ()
2879 {
2880 int i;
2881 for (i = 0; i < 256; i++)
2882 if (XOR (islower (i), ISLOWER (i))
2883 || toupper (i) != TOUPPER (i))
2884 return 2;
2885 return 0;
2886 }
2887 _ACEOF
2888 if ac_fn_cxx_try_run "$LINENO"; then :
2889
2890 else
2891 ac_cv_header_stdc=no
2892 fi
2893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2894 conftest.$ac_objext conftest.beam conftest.$ac_ext
2895 fi
2896
2897 fi
2898 fi
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
2900 $as_echo "$ac_cv_header_stdc" >&6; }
2901 if test $ac_cv_header_stdc = yes; then
2902
2903 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
2904
2905 fi
2906
2907 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2908 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2909 inttypes.h stdint.h unistd.h
2910 do :
2911 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2912 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
2913 "
2914 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
2915 cat >>confdefs.h <<_ACEOF
2916 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2917 _ACEOF
2918
2919 fi
2920
2921 done
2922
2923
2924 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
2925 if test "x$ac_cv_type_long_long" = xyes; then :
2926
2927 cat >>confdefs.h <<_ACEOF
2928 #define HAVE_LONG_LONG 1
2929 _ACEOF
2930
2931 long64="long long"
2932 fi
2933
2934 if test "${long64}" != ""; then
2935 POLYCLIP_LONG64="${long64}"
2936 else
2937 echo "Error: unable to find a C++ data type for ${name64}"
2938 exit 1
2939 fi
2940 fi
2941 fi
2942 fi
2943 fi
2944 echo " In the clipper library, ${name64}"
2945 echo " will be declared as '${long64}'"
2946 ulong64=""
2947 uname64="unsigned 64-bit integers (cUInt)"
2948 if test "${CXX1X}" != ""; then
2949 ulong64="unsigned long long"
2950 POLYCLIP_ULONG64="${ulong64}"
2951 else
2952 ac_fn_cxx_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <stdint.h>
2953 "
2954 if test "x$ac_cv_type_uint64_t" = xyes; then :
2955
2956 cat >>confdefs.h <<_ACEOF
2957 #define HAVE_UINT64_T 1
2958 _ACEOF
2959
2960 ulong64="uint64_t"
2961 fi
2962
2963 if test "${ulong64}" != ""; then
2964 POLYCLIP_ULONG64="${ulong64}"
2965 else
2966 ac_fn_cxx_check_type "$LINENO" "uint_fast64_t" "ac_cv_type_uint_fast64_t" "#include <stdint.h>
2967 "
2968 if test "x$ac_cv_type_uint_fast64_t" = xyes; then :
2969
2970 cat >>confdefs.h <<_ACEOF
2971 #define HAVE_UINT_FAST64_T 1
2972 _ACEOF
2973
2974 ulong64="uint_fast64_t"
2975 fi
2976
2977 if test "${ulong64}" != ""; then
2978 POLYCLIP_ULONG64="${ulong64}"
2979 else
2980 ac_fn_cxx_check_type "$LINENO" "uint_least64_t" "ac_cv_type_uint_least64_t" "#include <stdint.h>
2981 "
2982 if test "x$ac_cv_type_uint_least64_t" = xyes; then :
2983
2984 cat >>confdefs.h <<_ACEOF
2985 #define HAVE_UINT_LEAST64_T 1
2986 _ACEOF
2987
2988 ulong64="uint_least64_t"
2989 fi
2990
2991 if test "${ulong64}" != ""; then
2992 POLYCLIP_ULONG64="${ulong64}"
2993 else
2994 ac_fn_cxx_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
2995 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
2996
2997 cat >>confdefs.h <<_ACEOF
2998 #define HAVE_UNSIGNED_LONG_LONG 1
2999 _ACEOF
3000
3001 ulong64="unsigned long long"
3002 fi
3003
3004 if test "${ulong64}" != ""; then
3005 POLYCLIP_ULONG64="${ulong64}"
3006 else
3007 echo "Error: unable to find a C++ data type for ${uname64}"
3008 exit 1
3009 fi
3010 fi
3011 fi
3012 fi
3013 fi
3014 echo " In the clipper library, ${uname64}"
3015 echo " will be declared as '${ulong64}'"
3016 POLYCLIP_CPPFLAGS="-DPOLYCLIP_LONG64=\"${POLYCLIP_LONG64}\" -DPOLYCLIP_ULONG64=\"${POLYCLIP_ULONG64}\""
3017 POLYCLIP_OBJECTS="clipper.o"
3018 fi
3019 POLYCLIP_CXXFLAGS="${CXXFLAGS}"
3020
3021
3022
3023
3024 ac_config_files="$ac_config_files src/Makevars"
3025
3026 cat >confcache <<\_ACEOF
3027 # This file is a shell script that caches the results of configure
3028 # tests run on this system so they can be shared between configure
3029 # scripts and configure runs, see configure's option --config-cache.
3030 # It is not useful on other systems. If it contains results you don't
3031 # want to keep, you may remove or edit it.
3032 #
3033 # config.status only pays attention to the cache file if you give it
3034 # the --recheck option to rerun configure.
3035 #
3036 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3037 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3038 # following values.
3039
3040 _ACEOF
3041
3042 # The following way of writing the cache mishandles newlines in values,
3043 # but we know of no workaround that is simple, portable, and efficient.
3044 # So, we kill variables containing newlines.
3045 # Ultrix sh set writes to stderr and can't be redirected directly,
3046 # and sets the high bit in the cache file unless we assign to the vars.
3047 (
3048 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3049 eval ac_val=\$$ac_var
3050 case $ac_val in #(
3051 *${as_nl}*)
3052 case $ac_var in #(
3053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3055 esac
3056 case $ac_var in #(
3057 _ | IFS | as_nl) ;; #(
3058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3059 *) { eval $ac_var=; unset $ac_var;} ;;
3060 esac ;;
3061 esac
3062 done
3063
3064 (set) 2>&1 |
3065 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3066 *${as_nl}ac_space=\ *)
3067 # `set' does not quote correctly, so add quotes: double-quote
3068 # substitution turns \\\\ into \\, and sed turns \\ into \.
3069 sed -n \
3070 "s/'/'\\\\''/g;
3071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3072 ;; #(
3073 *)
3074 # `set' quotes correctly as required by POSIX, so do not add quotes.
3075 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3076 ;;
3077 esac |
3078 sort
3079 ) |
3080 sed '
3081 /^ac_cv_env_/b end
3082 t clear
3083 :clear
3084 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3085 t end
3086 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3087 :end' >>confcache
3088 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3089 if test -w "$cache_file"; then
3090 if test "x$cache_file" != "x/dev/null"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3092 $as_echo "$as_me: updating cache $cache_file" >&6;}
3093 if test ! -f "$cache_file" || test -h "$cache_file"; then
3094 cat confcache >"$cache_file"
3095 else
3096 case $cache_file in #(
3097 */* | ?:*)
3098 mv -f confcache "$cache_file"$$ &&
3099 mv -f "$cache_file"$$ "$cache_file" ;; #(
3100 *)
3101 mv -f confcache "$cache_file" ;;
3102 esac
3103 fi
3104 fi
3105 else
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3107 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3108 fi
3109 fi
3110 rm -f confcache
3111
3112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3113 # Let make expand exec_prefix.
3114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3115
3116 # Transform confdefs.h into DEFS.
3117 # Protect against shell expansion while executing Makefile rules.
3118 # Protect against Makefile macro expansion.
3119 #
3120 # If the first sed substitution is executed (which looks for macros that
3121 # take arguments), then branch to the quote section. Otherwise,
3122 # look for a macro that doesn't take arguments.
3123 ac_script='
3124 :mline
3125 /\\$/{
3126 N
3127 s,\\\n,,
3128 b mline
3129 }
3130 t clear
3131 :clear
3132 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3133 t quote
3134 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3135 t quote
3136 b any
3137 :quote
3138 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3139 s/\[/\\&/g
3140 s/\]/\\&/g
3141 s/\$/$$/g
3142 H
3143 :any
3144 ${
3145 g
3146 s/^\n//
3147 s/\n/ /g
3148 p
3149 }
3150 '
3151 DEFS=`sed -n "$ac_script" confdefs.h`
3152
3153
3154 ac_libobjs=
3155 ac_ltlibobjs=
3156 U=
3157 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3158 # 1. Remove the extension, and $U if already installed.
3159 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3160 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3161 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3162 # will be set to the directory where LIBOBJS objects are built.
3163 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3164 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3165 done
3166 LIBOBJS=$ac_libobjs
3167
3168 LTLIBOBJS=$ac_ltlibobjs
3169
3170
3171
3172 : "${CONFIG_STATUS=./config.status}"
3173 ac_write_fail=0
3174 ac_clean_files_save=$ac_clean_files
3175 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3177 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3178 as_write_fail=0
3179 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3180 #! $SHELL
3181 # Generated by $as_me.
3182 # Run this file to recreate the current configuration.
3183 # Compiler output produced by configure, useful for debugging
3184 # configure, is in config.log if it exists.
3185
3186 debug=false
3187 ac_cs_recheck=false
3188 ac_cs_silent=false
3189
3190 SHELL=\${CONFIG_SHELL-$SHELL}
3191 export SHELL
3192 _ASEOF
3193 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3194 ## -------------------- ##
3195 ## M4sh Initialization. ##
3196 ## -------------------- ##
3197
3198 # Be more Bourne compatible
3199 DUALCASE=1; export DUALCASE # for MKS sh
3200 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3201 emulate sh
3202 NULLCMD=:
3203 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3204 # is contrary to our usage. Disable this feature.
3205 alias -g '${1+"$@"}'='"$@"'
3206 setopt NO_GLOB_SUBST
3207 else
3208 case `(set -o) 2>/dev/null` in #(
3209 *posix*) :
3210 set -o posix ;; #(
3211 *) :
3212 ;;
3213 esac
3214 fi
3215
3216
3217 as_nl='
3218 '
3219 export as_nl
3220 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3221 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3222 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3223 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3224 # Prefer a ksh shell builtin over an external printf program on Solaris,
3225 # but without wasting forks for bash or zsh.
3226 if test -z "$BASH_VERSION$ZSH_VERSION" \
3227 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3228 as_echo='print -r --'
3229 as_echo_n='print -rn --'
3230 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3231 as_echo='printf %s\n'
3232 as_echo_n='printf %s'
3233 else
3234 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3235 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3236 as_echo_n='/usr/ucb/echo -n'
3237 else
3238 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3239 as_echo_n_body='eval
3240 arg=$1;
3241 case $arg in #(
3242 *"$as_nl"*)
3243 expr "X$arg" : "X\\(.*\\)$as_nl";
3244 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3245 esac;
3246 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3247 '
3248 export as_echo_n_body
3249 as_echo_n='sh -c $as_echo_n_body as_echo'
3250 fi
3251 export as_echo_body
3252 as_echo='sh -c $as_echo_body as_echo'
3253 fi
3254
3255 # The user is always right.
3256 if test "${PATH_SEPARATOR+set}" != set; then
3257 PATH_SEPARATOR=:
3258 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3259 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3260 PATH_SEPARATOR=';'
3261 }
3262 fi
3263
3264
3265 # IFS
3266 # We need space, tab and new line, in precisely that order. Quoting is
3267 # there to prevent editors from complaining about space-tab.
3268 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3269 # splitting by setting IFS to empty value.)
3270 IFS=" "" $as_nl"
3271
3272 # Find who we are. Look in the path if we contain no directory separator.
3273 as_myself=
3274 case $0 in #((
3275 *[\\/]* ) as_myself=$0 ;;
3276 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3282 done
3283 IFS=$as_save_IFS
3284
3285 ;;
3286 esac
3287 # We did not find ourselves, most probably we were run as `sh COMMAND'
3288 # in which case we are not to be found in the path.
3289 if test "x$as_myself" = x; then
3290 as_myself=$0
3291 fi
3292 if test ! -f "$as_myself"; then
3293 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3294 exit 1
3295 fi
3296
3297 # Unset variables that we do not need and which cause bugs (e.g. in
3298 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3299 # suppresses any "Segmentation fault" message there. '((' could
3300 # trigger a bug in pdksh 5.2.14.
3301 for as_var in BASH_ENV ENV MAIL MAILPATH
3302 do eval test x\${$as_var+set} = xset \
3303 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3304 done
3305 PS1='$ '
3306 PS2='> '
3307 PS4='+ '
3308
3309 # NLS nuisances.
3310 LC_ALL=C
3311 export LC_ALL
3312 LANGUAGE=C
3313 export LANGUAGE
3314
3315 # CDPATH.
3316 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3317
3318
3319 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3320 # ----------------------------------------
3321 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3322 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3323 # script with STATUS, using 1 if that was 0.
3324 as_fn_error ()
3325 {
3326 as_status=$1; test $as_status -eq 0 && as_status=1
3327 if test "$4"; then
3328 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3329 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3330 fi
3331 $as_echo "$as_me: error: $2" >&2
3332 as_fn_exit $as_status
3333 } # as_fn_error
3334
3335
3336 # as_fn_set_status STATUS
3337 # -----------------------
3338 # Set $? to STATUS, without forking.
3339 as_fn_set_status ()
3340 {
3341 return $1
3342 } # as_fn_set_status
3343
3344 # as_fn_exit STATUS
3345 # -----------------
3346 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3347 as_fn_exit ()
3348 {
3349 set +e
3350 as_fn_set_status $1
3351 exit $1
3352 } # as_fn_exit
3353
3354 # as_fn_unset VAR
3355 # ---------------
3356 # Portably unset VAR.
3357 as_fn_unset ()
3358 {
3359 { eval $1=; unset $1;}
3360 }
3361 as_unset=as_fn_unset
3362 # as_fn_append VAR VALUE
3363 # ----------------------
3364 # Append the text in VALUE to the end of the definition contained in VAR. Take
3365 # advantage of any shell optimizations that allow amortized linear growth over
3366 # repeated appends, instead of the typical quadratic growth present in naive
3367 # implementations.
3368 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3369 eval 'as_fn_append ()
3370 {
3371 eval $1+=\$2
3372 }'
3373 else
3374 as_fn_append ()
3375 {
3376 eval $1=\$$1\$2
3377 }
3378 fi # as_fn_append
3379
3380 # as_fn_arith ARG...
3381 # ------------------
3382 # Perform arithmetic evaluation on the ARGs, and store the result in the
3383 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3384 # must be portable across $(()) and expr.
3385 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3386 eval 'as_fn_arith ()
3387 {
3388 as_val=$(( $* ))
3389 }'
3390 else
3391 as_fn_arith ()
3392 {
3393 as_val=`expr "$@" || test $? -eq 1`
3394 }
3395 fi # as_fn_arith
3396
3397
3398 if expr a : '\(a\)' >/dev/null 2>&1 &&
3399 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3400 as_expr=expr
3401 else
3402 as_expr=false
3403 fi
3404
3405 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3406 as_basename=basename
3407 else
3408 as_basename=false
3409 fi
3410
3411 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3412 as_dirname=dirname
3413 else
3414 as_dirname=false
3415 fi
3416
3417 as_me=`$as_basename -- "$0" ||
3418 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3419 X"$0" : 'X\(//\)$' \| \
3420 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3421 $as_echo X/"$0" |
3422 sed '/^.*\/\([^/][^/]*\)\/*$/{
3423 s//\1/
3424 q
3425 }
3426 /^X\/\(\/\/\)$/{
3427 s//\1/
3428 q
3429 }
3430 /^X\/\(\/\).*/{
3431 s//\1/
3432 q
3433 }
3434 s/.*/./; q'`
3435
3436 # Avoid depending upon Character Ranges.
3437 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3438 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3439 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3440 as_cr_digits='0123456789'
3441 as_cr_alnum=$as_cr_Letters$as_cr_digits
3442
3443 ECHO_C= ECHO_N= ECHO_T=
3444 case `echo -n x` in #(((((
3445 -n*)
3446 case `echo 'xy\c'` in
3447 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3448 xy) ECHO_C='\c';;
3449 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3450 ECHO_T=' ';;
3451 esac;;
3452 *)
3453 ECHO_N='-n';;
3454 esac
3455
3456 rm -f conf$$ conf$$.exe conf$$.file
3457 if test -d conf$$.dir; then
3458 rm -f conf$$.dir/conf$$.file
3459 else
3460 rm -f conf$$.dir
3461 mkdir conf$$.dir 2>/dev/null
3462 fi
3463 if (echo >conf$$.file) 2>/dev/null; then
3464 if ln -s conf$$.file conf$$ 2>/dev/null; then
3465 as_ln_s='ln -s'
3466 # ... but there are two gotchas:
3467 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3468 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3469 # In both cases, we have to default to `cp -pR'.
3470 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3471 as_ln_s='cp -pR'
3472 elif ln conf$$.file conf$$ 2>/dev/null; then
3473 as_ln_s=ln
3474 else
3475 as_ln_s='cp -pR'
3476 fi
3477 else
3478 as_ln_s='cp -pR'
3479 fi
3480 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3481 rmdir conf$$.dir 2>/dev/null
3482
3483
3484 # as_fn_mkdir_p
3485 # -------------
3486 # Create "$as_dir" as a directory, including parents if necessary.
3487 as_fn_mkdir_p ()
3488 {
3489
3490 case $as_dir in #(
3491 -*) as_dir=./$as_dir;;
3492 esac
3493 test -d "$as_dir" || eval $as_mkdir_p || {
3494 as_dirs=
3495 while :; do
3496 case $as_dir in #(
3497 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3498 *) as_qdir=$as_dir;;
3499 esac
3500 as_dirs="'$as_qdir' $as_dirs"
3501 as_dir=`$as_dirname -- "$as_dir" ||
3502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3503 X"$as_dir" : 'X\(//\)[^/]' \| \
3504 X"$as_dir" : 'X\(//\)$' \| \
3505 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3506 $as_echo X"$as_dir" |
3507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3508 s//\1/
3509 q
3510 }
3511 /^X\(\/\/\)[^/].*/{
3512 s//\1/
3513 q
3514 }
3515 /^X\(\/\/\)$/{
3516 s//\1/
3517 q
3518 }
3519 /^X\(\/\).*/{
3520 s//\1/
3521 q
3522 }
3523 s/.*/./; q'`
3524 test -d "$as_dir" && break
3525 done
3526 test -z "$as_dirs" || eval "mkdir $as_dirs"
3527 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3528
3529
3530 } # as_fn_mkdir_p
3531 if mkdir -p . 2>/dev/null; then
3532 as_mkdir_p='mkdir -p "$as_dir"'
3533 else
3534 test -d ./-p && rmdir ./-p
3535 as_mkdir_p=false
3536 fi
3537
3538
3539 # as_fn_executable_p FILE
3540 # -----------------------
3541 # Test if FILE is an executable regular file.
3542 as_fn_executable_p ()
3543 {
3544 test -f "$1" && test -x "$1"
3545 } # as_fn_executable_p
3546 as_test_x='test -x'
3547 as_executable_p=as_fn_executable_p
3548
3549 # Sed expression to map a string onto a valid CPP name.
3550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3551
3552 # Sed expression to map a string onto a valid variable name.
3553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3554
3555
3556 exec 6>&1
3557 ## ----------------------------------- ##
3558 ## Main body of $CONFIG_STATUS script. ##
3559 ## ----------------------------------- ##
3560 _ASEOF
3561 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3562
3563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3564 # Save the log message, to keep $0 and so on meaningful, and to
3565 # report actual input values of CONFIG_FILES etc. instead of their
3566 # values after options handling.
3567 ac_log="
3568 This file was extended by polyclip $as_me 1.9-1, which was
3569 generated by GNU Autoconf 2.69. Invocation command line was
3570
3571 CONFIG_FILES = $CONFIG_FILES
3572 CONFIG_HEADERS = $CONFIG_HEADERS
3573 CONFIG_LINKS = $CONFIG_LINKS
3574 CONFIG_COMMANDS = $CONFIG_COMMANDS
3575 $ $0 $@
3576
3577 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3578 "
3579
3580 _ACEOF
3581
3582 case $ac_config_files in *"
3583 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3584 esac
3585
3586
3587
3588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3589 # Files that config.status was made for.
3590 config_files="$ac_config_files"
3591
3592 _ACEOF
3593
3594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3595 ac_cs_usage="\
3596 \`$as_me' instantiates files and other configuration actions
3597 from templates according to the current configuration. Unless the files
3598 and actions are specified as TAGs, all are instantiated by default.
3599
3600 Usage: $0 [OPTION]... [TAG]...
3601
3602 -h, --help print this help, then exit
3603 -V, --version print version number and configuration settings, then exit
3604 --config print configuration, then exit
3605 -q, --quiet, --silent
3606 do not print progress messages
3607 -d, --debug don't remove temporary files
3608 --recheck update $as_me by reconfiguring in the same conditions
3609 --file=FILE[:TEMPLATE]
3610 instantiate the configuration file FILE
3611
3612 Configuration files:
3613 $config_files
3614
3615 Report bugs to the package provider."
3616
3617 _ACEOF
3618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3619 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3620 ac_cs_version="\\
3621 polyclip config.status 1.9-1
3622 configured by $0, generated by GNU Autoconf 2.69,
3623 with options \\"\$ac_cs_config\\"
3624
3625 Copyright (C) 2012 Free Software Foundation, Inc.
3626 This config.status script is free software; the Free Software Foundation
3627 gives unlimited permission to copy, distribute and modify it."
3628
3629 ac_pwd='$ac_pwd'
3630 srcdir='$srcdir'
3631 test -n "\$AWK" || AWK=awk
3632 _ACEOF
3633
3634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3635 # The default lists apply if the user does not specify any file.
3636 ac_need_defaults=:
3637 while test $# != 0
3638 do
3639 case $1 in
3640 --*=?*)
3641 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3642 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3643 ac_shift=:
3644 ;;
3645 --*=)
3646 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3647 ac_optarg=
3648 ac_shift=:
3649 ;;
3650 *)
3651 ac_option=$1
3652 ac_optarg=$2
3653 ac_shift=shift
3654 ;;
3655 esac
3656
3657 case $ac_option in
3658 # Handling of the options.
3659 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3660 ac_cs_recheck=: ;;
3661 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3662 $as_echo "$ac_cs_version"; exit ;;
3663 --config | --confi | --conf | --con | --co | --c )
3664 $as_echo "$ac_cs_config"; exit ;;
3665 --debug | --debu | --deb | --de | --d | -d )
3666 debug=: ;;
3667 --file | --fil | --fi | --f )
3668 $ac_shift
3669 case $ac_optarg in
3670 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3671 '') as_fn_error $? "missing file argument" ;;
3672 esac
3673 as_fn_append CONFIG_FILES " '$ac_optarg'"
3674 ac_need_defaults=false;;
3675 --he | --h | --help | --hel | -h )
3676 $as_echo "$ac_cs_usage"; exit ;;
3677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3678 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3679 ac_cs_silent=: ;;
3680
3681 # This is an error.
3682 -*) as_fn_error $? "unrecognized option: \`$1'
3683 Try \`$0 --help' for more information." ;;
3684
3685 *) as_fn_append ac_config_targets " $1"
3686 ac_need_defaults=false ;;
3687
3688 esac
3689 shift
3690 done
3691
3692 ac_configure_extra_args=
3693
3694 if $ac_cs_silent; then
3695 exec 6>/dev/null
3696 ac_configure_extra_args="$ac_configure_extra_args --silent"
3697 fi
3698
3699 _ACEOF
3700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3701 if \$ac_cs_recheck; then
3702 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3703 shift
3704 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3705 CONFIG_SHELL='$SHELL'
3706 export CONFIG_SHELL
3707 exec "\$@"
3708 fi
3709
3710 _ACEOF
3711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3712 exec 5>>config.log
3713 {
3714 echo
3715 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3716 ## Running $as_me. ##
3717 _ASBOX
3718 $as_echo "$ac_log"
3719 } >&5
3720
3721 _ACEOF
3722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3723 _ACEOF
3724
3725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3726
3727 # Handling of arguments.
3728 for ac_config_target in $ac_config_targets
3729 do
3730 case $ac_config_target in
3731 "src/Makevars") CONFIG_FILES="$CONFIG_FILES src/Makevars" ;;
3732
3733 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3734 esac
3735 done
3736
3737
3738 # If the user did not use the arguments to specify the items to instantiate,
3739 # then the envvar interface is used. Set only those that are not.
3740 # We use the long form for the default assignment because of an extremely
3741 # bizarre bug on SunOS 4.1.3.
3742 if $ac_need_defaults; then
3743 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3744 fi
3745
3746 # Have a temporary directory for convenience. Make it in the build tree
3747 # simply because there is no reason against having it here, and in addition,
3748 # creating and moving files from /tmp can sometimes cause problems.
3749 # Hook for its removal unless debugging.
3750 # Note that there is a small window in which the directory will not be cleaned:
3751 # after its creation but before its name has been assigned to `$tmp'.
3752 $debug ||
3753 {
3754 tmp= ac_tmp=
3755 trap 'exit_status=$?
3756 : "${ac_tmp:=$tmp}"
3757 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3758 ' 0
3759 trap 'as_fn_exit 1' 1 2 13 15
3760 }
3761 # Create a (secure) tmp directory for tmp files.
3762
3763 {
3764 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3765 test -d "$tmp"
3766 } ||
3767 {
3768 tmp=./conf$$-$RANDOM
3769 (umask 077 && mkdir "$tmp")
3770 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3771 ac_tmp=$tmp
3772
3773 # Set up the scripts for CONFIG_FILES section.
3774 # No need to generate them if there are no CONFIG_FILES.
3775 # This happens for instance with `./config.status config.h'.
3776 if test -n "$CONFIG_FILES"; then
3777
3778
3779 ac_cr=`echo X | tr X '\015'`
3780 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3781 # But we know of no other shell where ac_cr would be empty at this
3782 # point, so we can use a bashism as a fallback.
3783 if test "x$ac_cr" = x; then
3784 eval ac_cr=\$\'\\r\'
3785 fi
3786 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3787 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3788 ac_cs_awk_cr='\\r'
3789 else
3790 ac_cs_awk_cr=$ac_cr
3791 fi
3792
3793 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3794 _ACEOF
3795
3796
3797 {
3798 echo "cat >conf$$subs.awk <<_ACEOF" &&
3799 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3800 echo "_ACEOF"
3801 } >conf$$subs.sh ||
3802 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3803 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3804 ac_delim='%!_!# '
3805 for ac_last_try in false false false false false :; do
3806 . ./conf$$subs.sh ||
3807 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3808
3809 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3810 if test $ac_delim_n = $ac_delim_num; then
3811 break
3812 elif $ac_last_try; then
3813 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3814 else
3815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3816 fi
3817 done
3818 rm -f conf$$subs.sh
3819
3820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3821 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3822 _ACEOF
3823 sed -n '
3824 h
3825 s/^/S["/; s/!.*/"]=/
3826 p
3827 g
3828 s/^[^!]*!//
3829 :repl
3830 t repl
3831 s/'"$ac_delim"'$//
3832 t delim
3833 :nl
3834 h
3835 s/\(.\{148\}\)..*/\1/
3836 t more1
3837 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3838 p
3839 n
3840 b repl
3841 :more1
3842 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3843 p
3844 g
3845 s/.\{148\}//
3846 t nl
3847 :delim
3848 h
3849 s/\(.\{148\}\)..*/\1/
3850 t more2
3851 s/["\\]/\\&/g; s/^/"/; s/$/"/
3852 p
3853 b
3854 :more2
3855 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3856 p
3857 g
3858 s/.\{148\}//
3859 t delim
3860 ' <conf$$subs.awk | sed '
3861 /^[^""]/{
3862 N
3863 s/\n//
3864 }
3865 ' >>$CONFIG_STATUS || ac_write_fail=1
3866 rm -f conf$$subs.awk
3867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3868 _ACAWK
3869 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3870 for (key in S) S_is_set[key] = 1
3871 FS = ""
3872
3873 }
3874 {
3875 line = $ 0
3876 nfields = split(line, field, "@")
3877 substed = 0
3878 len = length(field[1])
3879 for (i = 2; i < nfields; i++) {
3880 key = field[i]
3881 keylen = length(key)
3882 if (S_is_set[key]) {
3883 value = S[key]
3884 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3885 len += length(value) + length(field[++i])
3886 substed = 1
3887 } else
3888 len += 1 + keylen
3889 }
3890
3891 print line
3892 }
3893
3894 _ACAWK
3895 _ACEOF
3896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3897 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3898 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3899 else
3900 cat
3901 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3902 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3903 _ACEOF
3904
3905 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3906 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3907 # trailing colons and then remove the whole line if VPATH becomes empty
3908 # (actually we leave an empty line to preserve line numbers).
3909 if test "x$srcdir" = x.; then
3910 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3911 h
3912 s///
3913 s/^/:/
3914 s/[ ]*$/:/
3915 s/:\$(srcdir):/:/g
3916 s/:\${srcdir}:/:/g
3917 s/:@srcdir@:/:/g
3918 s/^:*//
3919 s/:*$//
3920 x
3921 s/\(=[ ]*\).*/\1/
3922 G
3923 s/\n//
3924 s/^[^=]*=[ ]*$//
3925 }'
3926 fi
3927
3928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3929 fi # test -n "$CONFIG_FILES"
3930
3931
3932 eval set X " :F $CONFIG_FILES "
3933 shift
3934 for ac_tag
3935 do
3936 case $ac_tag in
3937 :[FHLC]) ac_mode=$ac_tag; continue;;
3938 esac
3939 case $ac_mode$ac_tag in
3940 :[FHL]*:*);;
3941 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3942 :[FH]-) ac_tag=-:-;;
3943 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3944 esac
3945 ac_save_IFS=$IFS
3946 IFS=:
3947 set x $ac_tag
3948 IFS=$ac_save_IFS
3949 shift
3950 ac_file=$1
3951 shift
3952
3953 case $ac_mode in
3954 :L) ac_source=$1;;
3955 :[FH])
3956 ac_file_inputs=
3957 for ac_f
3958 do
3959 case $ac_f in
3960 -) ac_f="$ac_tmp/stdin";;
3961 *) # Look for the file first in the build tree, then in the source tree
3962 # (if the path is not absolute). The absolute path cannot be DOS-style,
3963 # because $ac_f cannot contain `:'.
3964 test -f "$ac_f" ||
3965 case $ac_f in
3966 [\\/$]*) false;;
3967 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3968 esac ||
3969 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3970 esac
3971 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3972 as_fn_append ac_file_inputs " '$ac_f'"
3973 done
3974
3975 # Let's still pretend it is `configure' which instantiates (i.e., don't
3976 # use $as_me), people would be surprised to read:
3977 # /* config.h. Generated by config.status. */
3978 configure_input='Generated from '`
3979 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3980 `' by configure.'
3981 if test x"$ac_file" != x-; then
3982 configure_input="$ac_file. $configure_input"
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3984 $as_echo "$as_me: creating $ac_file" >&6;}
3985 fi
3986 # Neutralize special characters interpreted by sed in replacement strings.
3987 case $configure_input in #(
3988 *\&* | *\|* | *\\* )
3989 ac_sed_conf_input=`$as_echo "$configure_input" |
3990 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3991 *) ac_sed_conf_input=$configure_input;;
3992 esac
3993
3994 case $ac_tag in
3995 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3997 esac
3998 ;;
3999 esac
4000
4001 ac_dir=`$as_dirname -- "$ac_file" ||
4002 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4003 X"$ac_file" : 'X\(//\)[^/]' \| \
4004 X"$ac_file" : 'X\(//\)$' \| \
4005 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4006 $as_echo X"$ac_file" |
4007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4008 s//\1/
4009 q
4010 }
4011 /^X\(\/\/\)[^/].*/{
4012 s//\1/
4013 q
4014 }
4015 /^X\(\/\/\)$/{
4016 s//\1/
4017 q
4018 }
4019 /^X\(\/\).*/{
4020 s//\1/
4021 q
4022 }
4023 s/.*/./; q'`
4024 as_dir="$ac_dir"; as_fn_mkdir_p
4025 ac_builddir=.
4026
4027 case "$ac_dir" in
4028 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4029 *)
4030 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4031 # A ".." for each directory in $ac_dir_suffix.
4032 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4033 case $ac_top_builddir_sub in
4034 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4035 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4036 esac ;;
4037 esac
4038 ac_abs_top_builddir=$ac_pwd
4039 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4040 # for backward compatibility:
4041 ac_top_builddir=$ac_top_build_prefix
4042
4043 case $srcdir in
4044 .) # We are building in place.
4045 ac_srcdir=.
4046 ac_top_srcdir=$ac_top_builddir_sub
4047 ac_abs_top_srcdir=$ac_pwd ;;
4048 [\\/]* | ?:[\\/]* ) # Absolute name.
4049 ac_srcdir=$srcdir$ac_dir_suffix;
4050 ac_top_srcdir=$srcdir
4051 ac_abs_top_srcdir=$srcdir ;;
4052 *) # Relative name.
4053 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4054 ac_top_srcdir=$ac_top_build_prefix$srcdir
4055 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4056 esac
4057 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4058
4059
4060 case $ac_mode in
4061 :F)
4062 #
4063 # CONFIG_FILE
4064 #
4065
4066 _ACEOF
4067
4068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4069 # If the template does not know about datarootdir, expand it.
4070 # FIXME: This hack should be removed a few years after 2.60.
4071 ac_datarootdir_hack=; ac_datarootdir_seen=
4072 ac_sed_dataroot='
4073 /datarootdir/ {
4074 p
4075 q
4076 }
4077 /@datadir@/p
4078 /@docdir@/p
4079 /@infodir@/p
4080 /@localedir@/p
4081 /@mandir@/p'
4082 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4083 *datarootdir*) ac_datarootdir_seen=yes;;
4084 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4086 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4087 _ACEOF
4088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4089 ac_datarootdir_hack='
4090 s&@datadir@&$datadir&g
4091 s&@docdir@&$docdir&g
4092 s&@infodir@&$infodir&g
4093 s&@localedir@&$localedir&g
4094 s&@mandir@&$mandir&g
4095 s&\\\${datarootdir}&$datarootdir&g' ;;
4096 esac
4097 _ACEOF
4098
4099 # Neutralize VPATH when `$srcdir' = `.'.
4100 # Shell code in configure.ac might set extrasub.
4101 # FIXME: do we really want to maintain this feature?
4102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4103 ac_sed_extra="$ac_vpsub
4104 $extrasub
4105 _ACEOF
4106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4107 :t
4108 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4109 s|@configure_input@|$ac_sed_conf_input|;t t
4110 s&@top_builddir@&$ac_top_builddir_sub&;t t
4111 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4112 s&@srcdir@&$ac_srcdir&;t t
4113 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4114 s&@top_srcdir@&$ac_top_srcdir&;t t
4115 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4116 s&@builddir@&$ac_builddir&;t t
4117 s&@abs_builddir@&$ac_abs_builddir&;t t
4118 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4119 $ac_datarootdir_hack
4120 "
4121 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4122 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4123
4124 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4125 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4126 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4127 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4129 which seems to be undefined. Please make sure it is defined" >&5
4130 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4131 which seems to be undefined. Please make sure it is defined" >&2;}
4132
4133 rm -f "$ac_tmp/stdin"
4134 case $ac_file in
4135 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4136 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4137 esac \
4138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4139 ;;
4140
4141
4142
4143 esac
4144
4145 done # for ac_tag
4146
4147
4148 as_fn_exit 0
4149 _ACEOF
4150 ac_clean_files=$ac_clean_files_save
4151
4152 test $ac_write_fail = 0 ||
4153 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4154
4155
4156 # configure is writing to config.log, and then calls config.status.
4157 # config.status does its own redirection, appending to config.log.
4158 # Unfortunately, on DOS this fails, as config.log is still kept open
4159 # by configure, so config.status won't be able to write to it; its
4160 # output is simply discarded. So we exec the FD to /dev/null,
4161 # effectively closing config.log, so it can be properly (re)opened and
4162 # appended to by config.status. When coming back to configure, we
4163 # need to make the FD available again.
4164 if test "$no_create" != yes; then
4165 ac_cs_success=:
4166 ac_config_status_args=
4167 test "$silent" = yes &&
4168 ac_config_status_args="$ac_config_status_args --quiet"
4169 exec 5>/dev/null
4170 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4171 exec 5>>config.log
4172 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4173 # would make configure fail if this is the last instruction.
4174 $ac_cs_success || as_fn_exit 1
4175 fi
4176 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4178 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4179 fi
4180
4181
4182