Debian Codegraph @

ogr/ogrsf_frmts/amigocloud/pkg/configure

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