Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bumblebee 3.2.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
199 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='bumblebee'
578 PACKAGE_TARNAME='bumblebee'
579 PACKAGE_VERSION='3.2.1'
580 PACKAGE_STRING='bumblebee 3.2.1'
581 PACKAGE_BUGREPORT=''
582 PACKAGE_URL=''
583
584 ac_unique_file="src/bbsocket.c"
585 ac_subst_vars='am__EXEEXT_FALSE
586 am__EXEEXT_TRUE
587 LTLIBOBJS
588 LIBOBJS
589 libbsd_LIBS
590 libbsd_CFLAGS
591 glib_LIBS
592 glib_CFLAGS
593 x11_LIBS
594 x11_CFLAGS
595 PKG_CONFIG_LIBDIR
596 PKG_CONFIG_PATH
597 PKG_CONFIG
598 regular_CFLAGS
599 regular_CPPFLAGS
600 HAVE_HELP2MAN_FALSE
601 HAVE_HELP2MAN_TRUE
602 HELP2MAN
603 am__fastdepCC_FALSE
604 am__fastdepCC_TRUE
605 CCDEPMODE
606 am__nodep
607 AMDEPBACKSLASH
608 AMDEP_FALSE
609 AMDEP_TRUE
610 am__quote
611 am__include
612 DEPDIR
613 OBJEXT
614 EXEEXT
615 ac_ct_CC
616 CPPFLAGS
617 LDFLAGS
618 CFLAGS
619 CC
620 WITH_UDEV_RULES_FALSE
621 WITH_UDEV_RULES_TRUE
622 UDEV_RULES_DIR
623 WITH_PIDFILE_FALSE
624 WITH_PIDFILE_TRUE
625 am__untar
626 am__tar
627 AMTAR
628 am__leading_dot
629 SET_MAKE
630 AWK
631 mkdir_p
632 MKDIR_P
633 INSTALL_STRIP_PROGRAM
634 STRIP
635 install_sh
636 MAKEINFO
637 AUTOHEADER
638 AUTOMAKE
639 AUTOCONF
640 ACLOCAL
641 VERSION
642 PACKAGE
643 CYGPATH_W
644 am__isrc
645 INSTALL_DATA
646 INSTALL_SCRIPT
647 INSTALL_PROGRAM
648 CONF_MODPATH_NVIDIA
649 CONF_LDPATH_NVIDIA
650 CONF_DRIVER_MODULE_NVIDIA
651 CONF_DRIVER
652 CONF_PM_METHOD
653 CONF_PIDFILE
654 CONF_PRIMUS_LD_PATH
655 CONF_BRIDGE
656 CONF_TURNOFFATEXIT
657 CONF_VGLCOMPRESS
658 CONF_FALLBACKSTART
659 CONF_KEEPONEXIT
660 CONF_GID
661 CONF_SOCKPATH
662 CONF_XDISP
663 target_alias
664 host_alias
665 build_alias
666 LIBS
667 ECHO_T
668 ECHO_N
669 ECHO_C
670 DEFS
671 mandir
672 localedir
673 libdir
674 psdir
675 pdfdir
676 dvidir
677 htmldir
678 infodir
679 docdir
680 oldincludedir
681 includedir
682 localstatedir
683 sharedstatedir
684 sysconfdir
685 datadir
686 datarootdir
687 libexecdir
688 sbindir
689 bindir
690 program_transform_name
691 prefix
692 exec_prefix
693 PACKAGE_URL
694 PACKAGE_BUGREPORT
695 PACKAGE_STRING
696 PACKAGE_VERSION
697 PACKAGE_TARNAME
698 PACKAGE_NAME
699 PATH_SEPARATOR
700 SHELL'
701 ac_subst_files=''
702 ac_user_opts='
703 enable_option_checking
704 with_pidfile
705 with_udev_rules
706 enable_dependency_tracking
707 '
708 ac_precious_vars='build_alias
709 host_alias
710 target_alias
711 CONF_BRIDGE
712 CONF_PRIMUS_LD_PATH
713 CONF_PIDFILE
714 CONF_PM_METHOD
715 CONF_DRIVER
716 CONF_DRIVER_MODULE_NVIDIA
717 CONF_LDPATH_NVIDIA
718 CONF_MODPATH_NVIDIA
719 CC
720 CFLAGS
721 LDFLAGS
722 LIBS
723 CPPFLAGS
724 PKG_CONFIG
725 PKG_CONFIG_PATH
726 PKG_CONFIG_LIBDIR
727 x11_CFLAGS
728 x11_LIBS
729 glib_CFLAGS
730 glib_LIBS
731 libbsd_CFLAGS
732 libbsd_LIBS'
733
734
735 # Initialize some variables set by options.
736 ac_init_help=
737 ac_init_version=false
738 ac_unrecognized_opts=
739 ac_unrecognized_sep=
740 # The variables have the same names as the options, with
741 # dashes changed to underlines.
742 cache_file=/dev/null
743 exec_prefix=NONE
744 no_create=
745 no_recursion=
746 prefix=NONE
747 program_prefix=NONE
748 program_suffix=NONE
749 program_transform_name=s,x,x,
750 silent=
751 site=
752 srcdir=
753 verbose=
754 x_includes=NONE
755 x_libraries=NONE
756
757 # Installation directory options.
758 # These are left unexpanded so users can "make install exec_prefix=/foo"
759 # and all the variables that are supposed to be based on exec_prefix
760 # by default will actually change.
761 # Use braces instead of parens because sh, perl, etc. also accept them.
762 # (The list follows the same order as the GNU Coding Standards.)
763 bindir='${exec_prefix}/bin'
764 sbindir='${exec_prefix}/sbin'
765 libexecdir='${exec_prefix}/libexec'
766 datarootdir='${prefix}/share'
767 datadir='${datarootdir}'
768 sysconfdir='${prefix}/etc'
769 sharedstatedir='${prefix}/com'
770 localstatedir='${prefix}/var'
771 includedir='${prefix}/include'
772 oldincludedir='/usr/include'
773 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
774 infodir='${datarootdir}/info'
775 htmldir='${docdir}'
776 dvidir='${docdir}'
777 pdfdir='${docdir}'
778 psdir='${docdir}'
779 libdir='${exec_prefix}/lib'
780 localedir='${datarootdir}/locale'
781 mandir='${datarootdir}/man'
782
783 ac_prev=
784 ac_dashdash=
785 for ac_option
786 do
787 # If the previous option needs an argument, assign it.
788 if test -n "$ac_prev"; then
789 eval $ac_prev=\$ac_option
790 ac_prev=
791 continue
792 fi
793
794 case $ac_option in
795 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
796 *=) ac_optarg= ;;
797 *) ac_optarg=yes ;;
798 esac
799
800 # Accept the important Cygnus configure options, so we can diagnose typos.
801
802 case $ac_dashdash$ac_option in
803 --)
804 ac_dashdash=yes ;;
805
806 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 ac_prev=bindir ;;
808 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
809 bindir=$ac_optarg ;;
810
811 -build | --build | --buil | --bui | --bu)
812 ac_prev=build_alias ;;
813 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
814 build_alias=$ac_optarg ;;
815
816 -cache-file | --cache-file | --cache-fil | --cache-fi \
817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
818 ac_prev=cache_file ;;
819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
821 cache_file=$ac_optarg ;;
822
823 --config-cache | -C)
824 cache_file=config.cache ;;
825
826 -datadir | --datadir | --datadi | --datad)
827 ac_prev=datadir ;;
828 -datadir=* | --datadir=* | --datadi=* | --datad=*)
829 datadir=$ac_optarg ;;
830
831 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
832 | --dataroo | --dataro | --datar)
833 ac_prev=datarootdir ;;
834 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
835 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
836 datarootdir=$ac_optarg ;;
837
838 -disable-* | --disable-*)
839 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
842 as_fn_error $? "invalid feature name: $ac_useropt"
843 ac_useropt_orig=$ac_useropt
844 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
845 case $ac_user_opts in
846 *"
847 "enable_$ac_useropt"
848 "*) ;;
849 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
850 ac_unrecognized_sep=', ';;
851 esac
852 eval enable_$ac_useropt=no ;;
853
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
858
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
863
864 -enable-* | --enable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 as_fn_error $? "invalid feature name: $ac_useropt"
869 ac_useropt_orig=$ac_useropt
870 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
872 *"
873 "enable_$ac_useropt"
874 "*) ;;
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
877 esac
878 eval enable_$ac_useropt=\$ac_optarg ;;
879
880 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
881 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
882 | --exec | --exe | --ex)
883 ac_prev=exec_prefix ;;
884 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
885 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
886 | --exec=* | --exe=* | --ex=*)
887 exec_prefix=$ac_optarg ;;
888
889 -gas | --gas | --ga | --g)
890 # Obsolete; use --with-gas.
891 with_gas=yes ;;
892
893 -help | --help | --hel | --he | -h)
894 ac_init_help=long ;;
895 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
896 ac_init_help=recursive ;;
897 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
898 ac_init_help=short ;;
899
900 -host | --host | --hos | --ho)
901 ac_prev=host_alias ;;
902 -host=* | --host=* | --hos=* | --ho=*)
903 host_alias=$ac_optarg ;;
904
905 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 ac_prev=htmldir ;;
907 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 | --ht=*)
909 htmldir=$ac_optarg ;;
910
911 -includedir | --includedir | --includedi | --included | --include \
912 | --includ | --inclu | --incl | --inc)
913 ac_prev=includedir ;;
914 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
915 | --includ=* | --inclu=* | --incl=* | --inc=*)
916 includedir=$ac_optarg ;;
917
918 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 ac_prev=infodir ;;
920 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
921 infodir=$ac_optarg ;;
922
923 -libdir | --libdir | --libdi | --libd)
924 ac_prev=libdir ;;
925 -libdir=* | --libdir=* | --libdi=* | --libd=*)
926 libdir=$ac_optarg ;;
927
928 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
929 | --libexe | --libex | --libe)
930 ac_prev=libexecdir ;;
931 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
932 | --libexe=* | --libex=* | --libe=*)
933 libexecdir=$ac_optarg ;;
934
935 -localedir | --localedir | --localedi | --localed | --locale)
936 ac_prev=localedir ;;
937 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
938 localedir=$ac_optarg ;;
939
940 -localstatedir | --localstatedir | --localstatedi | --localstated \
941 | --localstate | --localstat | --localsta | --localst | --locals)
942 ac_prev=localstatedir ;;
943 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
944 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
945 localstatedir=$ac_optarg ;;
946
947 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 ac_prev=mandir ;;
949 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
950 mandir=$ac_optarg ;;
951
952 -nfp | --nfp | --nf)
953 # Obsolete; use --without-fp.
954 with_fp=no ;;
955
956 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
957 | --no-cr | --no-c | -n)
958 no_create=yes ;;
959
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
962 no_recursion=yes ;;
963
964 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
965 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
966 | --oldin | --oldi | --old | --ol | --o)
967 ac_prev=oldincludedir ;;
968 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
969 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
970 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
971 oldincludedir=$ac_optarg ;;
972
973 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 ac_prev=prefix ;;
975 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
976 prefix=$ac_optarg ;;
977
978 -program-prefix | --program-prefix | --program-prefi | --program-pref \
979 | --program-pre | --program-pr | --program-p)
980 ac_prev=program_prefix ;;
981 -program-prefix=* | --program-prefix=* | --program-prefi=* \
982 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
983 program_prefix=$ac_optarg ;;
984
985 -program-suffix | --program-suffix | --program-suffi | --program-suff \
986 | --program-suf | --program-su | --program-s)
987 ac_prev=program_suffix ;;
988 -program-suffix=* | --program-suffix=* | --program-suffi=* \
989 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
990 program_suffix=$ac_optarg ;;
991
992 -program-transform-name | --program-transform-name \
993 | --program-transform-nam | --program-transform-na \
994 | --program-transform-n | --program-transform- \
995 | --program-transform | --program-transfor \
996 | --program-transfo | --program-transf \
997 | --program-trans | --program-tran \
998 | --progr-tra | --program-tr | --program-t)
999 ac_prev=program_transform_name ;;
1000 -program-transform-name=* | --program-transform-name=* \
1001 | --program-transform-nam=* | --program-transform-na=* \
1002 | --program-transform-n=* | --program-transform-=* \
1003 | --program-transform=* | --program-transfor=* \
1004 | --program-transfo=* | --program-transf=* \
1005 | --program-trans=* | --program-tran=* \
1006 | --progr-tra=* | --program-tr=* | --program-t=*)
1007 program_transform_name=$ac_optarg ;;
1008
1009 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 ac_prev=pdfdir ;;
1011 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1012 pdfdir=$ac_optarg ;;
1013
1014 -psdir | --psdir | --psdi | --psd | --ps)
1015 ac_prev=psdir ;;
1016 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1017 psdir=$ac_optarg ;;
1018
1019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020 | -silent | --silent | --silen | --sile | --sil)
1021 silent=yes ;;
1022
1023 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024 ac_prev=sbindir ;;
1025 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1026 | --sbi=* | --sb=*)
1027 sbindir=$ac_optarg ;;
1028
1029 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1030 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1031 | --sharedst | --shareds | --shared | --share | --shar \
1032 | --sha | --sh)
1033 ac_prev=sharedstatedir ;;
1034 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1035 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1036 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1037 | --sha=* | --sh=*)
1038 sharedstatedir=$ac_optarg ;;
1039
1040 -site | --site | --sit)
1041 ac_prev=site ;;
1042 -site=* | --site=* | --sit=*)
1043 site=$ac_optarg ;;
1044
1045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1046 ac_prev=srcdir ;;
1047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1048 srcdir=$ac_optarg ;;
1049
1050 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1051 | --syscon | --sysco | --sysc | --sys | --sy)
1052 ac_prev=sysconfdir ;;
1053 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1054 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1055 sysconfdir=$ac_optarg ;;
1056
1057 -target | --target | --targe | --targ | --tar | --ta | --t)
1058 ac_prev=target_alias ;;
1059 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1060 target_alias=$ac_optarg ;;
1061
1062 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1063 verbose=yes ;;
1064
1065 -version | --version | --versio | --versi | --vers | -V)
1066 ac_init_version=: ;;
1067
1068 -with-* | --with-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error $? "invalid package name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1076 *"
1077 "with_$ac_useropt"
1078 "*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval with_$ac_useropt=\$ac_optarg ;;
1083
1084 -without-* | --without-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error $? "invalid package name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1092 *"
1093 "with_$ac_useropt"
1094 "*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval with_$ac_useropt=no ;;
1099
1100 --x)
1101 # Obsolete; use --with-x.
1102 with_x=yes ;;
1103
1104 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1105 | --x-incl | --x-inc | --x-in | --x-i)
1106 ac_prev=x_includes ;;
1107 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1108 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1109 x_includes=$ac_optarg ;;
1110
1111 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1112 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1113 ac_prev=x_libraries ;;
1114 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1115 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1116 x_libraries=$ac_optarg ;;
1117
1118 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1119 Try \`$0 --help' for more information"
1120 ;;
1121
1122 *=*)
1123 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1124 # Reject names that are not valid shell variable names.
1125 case $ac_envvar in #(
1126 '' | [0-9]* | *[!_$as_cr_alnum]* )
1127 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1128 esac
1129 eval $ac_envvar=\$ac_optarg
1130 export $ac_envvar ;;
1131
1132 *)
1133 # FIXME: should be removed in autoconf 3.0.
1134 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1135 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1136 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1137 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1138 ;;
1139
1140 esac
1141 done
1142
1143 if test -n "$ac_prev"; then
1144 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1145 as_fn_error $? "missing argument to $ac_option"
1146 fi
1147
1148 if test -n "$ac_unrecognized_opts"; then
1149 case $enable_option_checking in
1150 no) ;;
1151 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1152 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1153 esac
1154 fi
1155
1156 # Check all directory arguments for consistency.
1157 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1158 datadir sysconfdir sharedstatedir localstatedir includedir \
1159 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1160 libdir localedir mandir
1161 do
1162 eval ac_val=\$$ac_var
1163 # Remove trailing slashes.
1164 case $ac_val in
1165 */ )
1166 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1167 eval $ac_var=\$ac_val;;
1168 esac
1169 # Be sure to have absolute directory names.
1170 case $ac_val in
1171 [\\/$]* | ?:[\\/]* ) continue;;
1172 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1173 esac
1174 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1175 done
1176
1177 # There might be people who depend on the old broken behavior: `$host'
1178 # used to hold the argument of --host etc.
1179 # FIXME: To remove some day.
1180 build=$build_alias
1181 host=$host_alias
1182 target=$target_alias
1183
1184 # FIXME: To remove some day.
1185 if test "x$host_alias" != x; then
1186 if test "x$build_alias" = x; then
1187 cross_compiling=maybe
1188 elif test "x$build_alias" != "x$host_alias"; then
1189 cross_compiling=yes
1190 fi
1191 fi
1192
1193 ac_tool_prefix=
1194 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1195
1196 test "$silent" = yes && exec 6>/dev/null
1197
1198
1199 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1200 ac_ls_di=`ls -di .` &&
1201 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1202 as_fn_error $? "working directory cannot be determined"
1203 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1204 as_fn_error $? "pwd does not report name of working directory"
1205
1206
1207 # Find the source files, if location was not specified.
1208 if test -z "$srcdir"; then
1209 ac_srcdir_defaulted=yes
1210 # Try the directory containing this script, then the parent directory.
1211 ac_confdir=`$as_dirname -- "$as_myself" ||
1212 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1213 X"$as_myself" : 'X\(//\)[^/]' \| \
1214 X"$as_myself" : 'X\(//\)$' \| \
1215 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1216 $as_echo X"$as_myself" |
1217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1218 s//\1/
1219 q
1220 }
1221 /^X\(\/\/\)[^/].*/{
1222 s//\1/
1223 q
1224 }
1225 /^X\(\/\/\)$/{
1226 s//\1/
1227 q
1228 }
1229 /^X\(\/\).*/{
1230 s//\1/
1231 q
1232 }
1233 s/.*/./; q'`
1234 srcdir=$ac_confdir
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1236 srcdir=..
1237 fi
1238 else
1239 ac_srcdir_defaulted=no
1240 fi
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1243 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1244 fi
1245 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1246 ac_abs_confdir=`(
1247 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1248 pwd)`
1249 # When building in place, set srcdir=.
1250 if test "$ac_abs_confdir" = "$ac_pwd"; then
1251 srcdir=.
1252 fi
1253 # Remove unnecessary trailing slashes from srcdir.
1254 # Double slashes in file names in object file debugging info
1255 # mess up M-x gdb in Emacs.
1256 case $srcdir in
1257 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1258 esac
1259 for ac_var in $ac_precious_vars; do
1260 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1261 eval ac_env_${ac_var}_value=\$${ac_var}
1262 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1263 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1264 done
1265
1266 #
1267 # Report the --help message.
1268 #
1269 if test "$ac_init_help" = "long"; then
1270 # Omit some internal or obsolete options to make the list less imposing.
1271 # This message is too long to be a string in the A/UX 3.1 sh.
1272 cat <<_ACEOF
1273 \`configure' configures bumblebee 3.2.1 to adapt to many kinds of systems.
1274
1275 Usage: $0 [OPTION]... [VAR=VALUE]...
1276
1277 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1278 VAR=VALUE. See below for descriptions of some of the useful variables.
1279
1280 Defaults for the options are specified in brackets.
1281
1282 Configuration:
1283 -h, --help display this help and exit
1284 --help=short display options specific to this package
1285 --help=recursive display the short help of all the included packages
1286 -V, --version display version information and exit
1287 -q, --quiet, --silent do not print \`checking ...' messages
1288 --cache-file=FILE cache test results in FILE [disabled]
1289 -C, --config-cache alias for \`--cache-file=config.cache'
1290 -n, --no-create do not create output files
1291 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1292
1293 Installation directories:
1294 --prefix=PREFIX install architecture-independent files in PREFIX
1295 [$ac_default_prefix]
1296 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1297 [PREFIX]
1298
1299 By default, \`make install' will install all the files in
1300 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1301 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1302 for instance \`--prefix=\$HOME'.
1303
1304 For better control, use the options below.
1305
1306 Fine tuning of the installation directories:
1307 --bindir=DIR user executables [EPREFIX/bin]
1308 --sbindir=DIR system admin executables [EPREFIX/sbin]
1309 --libexecdir=DIR program executables [EPREFIX/libexec]
1310 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1311 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1312 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1313 --libdir=DIR object code libraries [EPREFIX/lib]
1314 --includedir=DIR C header files [PREFIX/include]
1315 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1316 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1317 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1318 --infodir=DIR info documentation [DATAROOTDIR/info]
1319 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1320 --mandir=DIR man documentation [DATAROOTDIR/man]
1321 --docdir=DIR documentation root [DATAROOTDIR/doc/bumblebee]
1322 --htmldir=DIR html documentation [DOCDIR]
1323 --dvidir=DIR dvi documentation [DOCDIR]
1324 --pdfdir=DIR pdf documentation [DOCDIR]
1325 --psdir=DIR ps documentation [DOCDIR]
1326 _ACEOF
1327
1328 cat <<\_ACEOF
1329
1330 Program names:
1331 --program-prefix=PREFIX prepend PREFIX to installed program names
1332 --program-suffix=SUFFIX append SUFFIX to installed program names
1333 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1334 _ACEOF
1335 fi
1336
1337 if test -n "$ac_init_help"; then
1338 case $ac_init_help in
1339 short | recursive ) echo "Configuration of bumblebee 3.2.1:";;
1340 esac
1341 cat <<\_ACEOF
1342
1343 Optional Features:
1344 --disable-option-checking ignore unrecognized --enable/--with options
1345 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1346 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1347 --disable-dependency-tracking speeds up one-time build
1348 --enable-dependency-tracking do not reject slow dependency extractors
1349
1350 Optional Packages:
1351 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1352 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1353 --without-pidfile support for pidfiles in the daemon [default=yes]
1354 --with-udev-rules[=DIR] install nvidia udev rule [default=/lib/udev/rules.d]
1355
1356 Some influential environment variables:
1357 CONF_BRIDGE optirun display/render bridge, valid values are auto (default),
1358 primus and virtualgl
1359 CONF_PRIMUS_LD_PATH
1360 List of paths which are searched for the primus libGL.so.1 when
1361 using the primus bridge
1362 CONF_PIDFILE
1363 Path to the pidfile or /var/run/bumblebeed.pid if empty
1364 CONF_PM_METHOD
1365 Power management method, valid values are auto (default),
1366 bbswitch, switcheroo and none
1367 CONF_DRIVER default driver to use, valid values are nvidia, nouveau and an
1368 empty value (for autodetection, default)
1369 CONF_DRIVER_MODULE_NVIDIA
1370 name of module for nvidia driver, i.e. the filename without .ko.
1371 If empty, "nvidia" is assumed
1372 CONF_LDPATH_NVIDIA
1373 Path to nvidia libraries for nvidia driver
1374 CONF_MODPATH_NVIDIA
1375 ModulePath for xorg modules when using nvidia driver
1376 CC C compiler command
1377 CFLAGS C compiler flags
1378 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1379 nonstandard directory <lib dir>
1380 LIBS libraries to pass to the linker, e.g. -l<library>
1381 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1382 you have headers in a nonstandard directory <include dir>
1383 PKG_CONFIG path to pkg-config utility
1384 PKG_CONFIG_PATH
1385 directories to add to pkg-config's search path
1386 PKG_CONFIG_LIBDIR
1387 path overriding pkg-config's built-in search path
1388 x11_CFLAGS C compiler flags for x11, overriding pkg-config
1389 x11_LIBS linker flags for x11, overriding pkg-config
1390 glib_CFLAGS C compiler flags for glib, overriding pkg-config
1391 glib_LIBS linker flags for glib, overriding pkg-config
1392 libbsd_CFLAGS
1393 C compiler flags for libbsd, overriding pkg-config
1394 libbsd_LIBS linker flags for libbsd, overriding pkg-config
1395
1396 Use these variables to override the choices made by `configure' or to help
1397 it to find libraries and programs with nonstandard names/locations.
1398
1399 Report bugs to the package provider.
1400 _ACEOF
1401 ac_status=$?
1402 fi
1403
1404 if test "$ac_init_help" = "recursive"; then
1405 # If there are subdirs, report their specific --help.
1406 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1407 test -d "$ac_dir" ||
1408 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1409 continue
1410 ac_builddir=.
1411
1412 case "$ac_dir" in
1413 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 *)
1415 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1416 # A ".." for each directory in $ac_dir_suffix.
1417 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1418 case $ac_top_builddir_sub in
1419 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1421 esac ;;
1422 esac
1423 ac_abs_top_builddir=$ac_pwd
1424 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1425 # for backward compatibility:
1426 ac_top_builddir=$ac_top_build_prefix
1427
1428 case $srcdir in
1429 .) # We are building in place.
1430 ac_srcdir=.
1431 ac_top_srcdir=$ac_top_builddir_sub
1432 ac_abs_top_srcdir=$ac_pwd ;;
1433 [\\/]* | ?:[\\/]* ) # Absolute name.
1434 ac_srcdir=$srcdir$ac_dir_suffix;
1435 ac_top_srcdir=$srcdir
1436 ac_abs_top_srcdir=$srcdir ;;
1437 *) # Relative name.
1438 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1439 ac_top_srcdir=$ac_top_build_prefix$srcdir
1440 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1441 esac
1442 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1443
1444 cd "$ac_dir" || { ac_status=$?; continue; }
1445 # Check for guested configure.
1446 if test -f "$ac_srcdir/configure.gnu"; then
1447 echo &&
1448 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1449 elif test -f "$ac_srcdir/configure"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure" --help=recursive
1452 else
1453 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1454 fi || ac_status=$?
1455 cd "$ac_pwd" || { ac_status=$?; break; }
1456 done
1457 fi
1458
1459 test -n "$ac_init_help" && exit $ac_status
1460 if $ac_init_version; then
1461 cat <<\_ACEOF
1462 bumblebee configure 3.2.1
1463 generated by GNU Autoconf 2.69
1464
1465 Copyright (C) 2012 Free Software Foundation, Inc.
1466 This configure script is free software; the Free Software Foundation
1467 gives unlimited permission to copy, distribute and modify it.
1468 _ACEOF
1469 exit
1470 fi
1471
1472 ## ------------------------ ##
1473 ## Autoconf initialization. ##
1474 ## ------------------------ ##
1475
1476 # ac_fn_c_try_compile LINENO
1477 # --------------------------
1478 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1479 ac_fn_c_try_compile ()
1480 {
1481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1482 rm -f conftest.$ac_objext
1483 if { { ac_try="$ac_compile"
1484 case "(($ac_try" in
1485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1486 *) ac_try_echo=$ac_try;;
1487 esac
1488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1489 $as_echo "$ac_try_echo"; } >&5
1490 (eval "$ac_compile") 2>conftest.err
1491 ac_status=$?
1492 if test -s conftest.err; then
1493 grep -v '^ *+' conftest.err >conftest.er1
1494 cat conftest.er1 >&5
1495 mv -f conftest.er1 conftest.err
1496 fi
1497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1498 test $ac_status = 0; } && {
1499 test -z "$ac_c_werror_flag" ||
1500 test ! -s conftest.err
1501 } && test -s conftest.$ac_objext; then :
1502 ac_retval=0
1503 else
1504 $as_echo "$as_me: failed program was:" >&5
1505 sed 's/^/| /' conftest.$ac_ext >&5
1506
1507 ac_retval=1
1508 fi
1509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1510 as_fn_set_status $ac_retval
1511
1512 } # ac_fn_c_try_compile
1513 cat >config.log <<_ACEOF
1514 This file contains any messages produced by compilers while
1515 running configure, to aid debugging if configure makes a mistake.
1516
1517 It was created by bumblebee $as_me 3.2.1, which was
1518 generated by GNU Autoconf 2.69. Invocation command line was
1519
1520 $ $0 $@
1521
1522 _ACEOF
1523 exec 5>>config.log
1524 {
1525 cat <<_ASUNAME
1526 ## --------- ##
1527 ## Platform. ##
1528 ## --------- ##
1529
1530 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1531 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1532 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1533 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1534 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1535
1536 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1537 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1538
1539 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1540 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1541 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1542 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1543 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1544 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1545 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1546
1547 _ASUNAME
1548
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 for as_dir in $PATH
1551 do
1552 IFS=$as_save_IFS
1553 test -z "$as_dir" && as_dir=.
1554 $as_echo "PATH: $as_dir"
1555 done
1556 IFS=$as_save_IFS
1557
1558 } >&5
1559
1560 cat >&5 <<_ACEOF
1561
1562
1563 ## ----------- ##
1564 ## Core tests. ##
1565 ## ----------- ##
1566
1567 _ACEOF
1568
1569
1570 # Keep a trace of the command line.
1571 # Strip out --no-create and --no-recursion so they do not pile up.
1572 # Strip out --silent because we don't want to record it for future runs.
1573 # Also quote any args containing shell meta-characters.
1574 # Make two passes to allow for proper duplicate-argument suppression.
1575 ac_configure_args=
1576 ac_configure_args0=
1577 ac_configure_args1=
1578 ac_must_keep_next=false
1579 for ac_pass in 1 2
1580 do
1581 for ac_arg
1582 do
1583 case $ac_arg in
1584 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1585 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1586 | -silent | --silent | --silen | --sile | --sil)
1587 continue ;;
1588 *\'*)
1589 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1590 esac
1591 case $ac_pass in
1592 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1593 2)
1594 as_fn_append ac_configure_args1 " '$ac_arg'"
1595 if test $ac_must_keep_next = true; then
1596 ac_must_keep_next=false # Got value, back to normal.
1597 else
1598 case $ac_arg in
1599 *=* | --config-cache | -C | -disable-* | --disable-* \
1600 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1601 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1602 | -with-* | --with-* | -without-* | --without-* | --x)
1603 case "$ac_configure_args0 " in
1604 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1605 esac
1606 ;;
1607 -* ) ac_must_keep_next=true ;;
1608 esac
1609 fi
1610 as_fn_append ac_configure_args " '$ac_arg'"
1611 ;;
1612 esac
1613 done
1614 done
1615 { ac_configure_args0=; unset ac_configure_args0;}
1616 { ac_configure_args1=; unset ac_configure_args1;}
1617
1618 # When interrupted or exit'd, cleanup temporary files, and complete
1619 # config.log. We remove comments because anyway the quotes in there
1620 # would cause problems or look ugly.
1621 # WARNING: Use '\'' to represent an apostrophe within the trap.
1622 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1623 trap 'exit_status=$?
1624 # Save into config.log some information that might help in debugging.
1625 {
1626 echo
1627
1628 $as_echo "## ---------------- ##
1629 ## Cache variables. ##
1630 ## ---------------- ##"
1631 echo
1632 # The following way of writing the cache mishandles newlines in values,
1633 (
1634 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1635 eval ac_val=\$$ac_var
1636 case $ac_val in #(
1637 *${as_nl}*)
1638 case $ac_var in #(
1639 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1640 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1641 esac
1642 case $ac_var in #(
1643 _ | IFS | as_nl) ;; #(
1644 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1645 *) { eval $ac_var=; unset $ac_var;} ;;
1646 esac ;;
1647 esac
1648 done
1649 (set) 2>&1 |
1650 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1651 *${as_nl}ac_space=\ *)
1652 sed -n \
1653 "s/'\''/'\''\\\\'\'''\''/g;
1654 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1655 ;; #(
1656 *)
1657 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1658 ;;
1659 esac |
1660 sort
1661 )
1662 echo
1663
1664 $as_echo "## ----------------- ##
1665 ## Output variables. ##
1666 ## ----------------- ##"
1667 echo
1668 for ac_var in $ac_subst_vars
1669 do
1670 eval ac_val=\$$ac_var
1671 case $ac_val in
1672 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1673 esac
1674 $as_echo "$ac_var='\''$ac_val'\''"
1675 done | sort
1676 echo
1677
1678 if test -n "$ac_subst_files"; then
1679 $as_echo "## ------------------- ##
1680 ## File substitutions. ##
1681 ## ------------------- ##"
1682 echo
1683 for ac_var in $ac_subst_files
1684 do
1685 eval ac_val=\$$ac_var
1686 case $ac_val in
1687 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1688 esac
1689 $as_echo "$ac_var='\''$ac_val'\''"
1690 done | sort
1691 echo
1692 fi
1693
1694 if test -s confdefs.h; then
1695 $as_echo "## ----------- ##
1696 ## confdefs.h. ##
1697 ## ----------- ##"
1698 echo
1699 cat confdefs.h
1700 echo
1701 fi
1702 test "$ac_signal" != 0 &&
1703 $as_echo "$as_me: caught signal $ac_signal"
1704 $as_echo "$as_me: exit $exit_status"
1705 } >&5
1706 rm -f core *.core core.conftest.* &&
1707 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1708 exit $exit_status
1709 ' 0
1710 for ac_signal in 1 2 13 15; do
1711 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1712 done
1713 ac_signal=0
1714
1715 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1716 rm -f -r conftest* confdefs.h
1717
1718 $as_echo "/* confdefs.h */" > confdefs.h
1719
1720 # Predefined preprocessor variables.
1721
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_NAME "$PACKAGE_NAME"
1724 _ACEOF
1725
1726 cat >>confdefs.h <<_ACEOF
1727 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1728 _ACEOF
1729
1730 cat >>confdefs.h <<_ACEOF
1731 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1732 _ACEOF
1733
1734 cat >>confdefs.h <<_ACEOF
1735 #define PACKAGE_STRING "$PACKAGE_STRING"
1736 _ACEOF
1737
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1740 _ACEOF
1741
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_URL "$PACKAGE_URL"
1744 _ACEOF
1745
1746
1747 # Let the site file select an alternate cache file if it wants to.
1748 # Prefer an explicitly selected file to automatically selected ones.
1749 ac_site_file1=NONE
1750 ac_site_file2=NONE
1751 if test -n "$CONFIG_SITE"; then
1752 # We do not want a PATH search for config.site.
1753 case $CONFIG_SITE in #((
1754 -*) ac_site_file1=./$CONFIG_SITE;;
1755 */*) ac_site_file1=$CONFIG_SITE;;
1756 *) ac_site_file1=./$CONFIG_SITE;;
1757 esac
1758 elif test "x$prefix" != xNONE; then
1759 ac_site_file1=$prefix/share/config.site
1760 ac_site_file2=$prefix/etc/config.site
1761 else
1762 ac_site_file1=$ac_default_prefix/share/config.site
1763 ac_site_file2=$ac_default_prefix/etc/config.site
1764 fi
1765 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1766 do
1767 test "x$ac_site_file" = xNONE && continue
1768 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1770 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1771 sed 's/^/| /' "$ac_site_file" >&5
1772 . "$ac_site_file" \
1773 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1775 as_fn_error $? "failed to load site script $ac_site_file
1776 See \`config.log' for more details" "$LINENO" 5; }
1777 fi
1778 done
1779
1780 if test -r "$cache_file"; then
1781 # Some versions of bash will fail to source /dev/null (special files
1782 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1783 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1785 $as_echo "$as_me: loading cache $cache_file" >&6;}
1786 case $cache_file in
1787 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1788 *) . "./$cache_file";;
1789 esac
1790 fi
1791 else
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1793 $as_echo "$as_me: creating cache $cache_file" >&6;}
1794 >$cache_file
1795 fi
1796
1797 # Check that the precious variables saved in the cache have kept the same
1798 # value.
1799 ac_cache_corrupted=false
1800 for ac_var in $ac_precious_vars; do
1801 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1802 eval ac_new_set=\$ac_env_${ac_var}_set
1803 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1804 eval ac_new_val=\$ac_env_${ac_var}_value
1805 case $ac_old_set,$ac_new_set in
1806 set,)
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1808 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1809 ac_cache_corrupted=: ;;
1810 ,set)
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1812 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1813 ac_cache_corrupted=: ;;
1814 ,);;
1815 *)
1816 if test "x$ac_old_val" != "x$ac_new_val"; then
1817 # differences in whitespace do not lead to failure.
1818 ac_old_val_w=`echo x $ac_old_val`
1819 ac_new_val_w=`echo x $ac_new_val`
1820 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1822 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1823 ac_cache_corrupted=:
1824 else
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1826 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1827 eval $ac_var=\$ac_old_val
1828 fi
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1830 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1832 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1833 fi;;
1834 esac
1835 # Pass precious variables to config.status.
1836 if test "$ac_new_set" = set; then
1837 case $ac_new_val in
1838 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1839 *) ac_arg=$ac_var=$ac_new_val ;;
1840 esac
1841 case " $ac_configure_args " in
1842 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1843 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1844 esac
1845 fi
1846 done
1847 if $ac_cache_corrupted; then
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1851 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1852 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1853 fi
1854 ## -------------------- ##
1855 ## Main body of script. ##
1856 ## -------------------- ##
1857
1858 ac_ext=c
1859 ac_cpp='$CPP $CPPFLAGS'
1860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1863
1864
1865 ac_aux_dir=
1866 for ac_dir in build-aux "$srcdir"/build-aux; do
1867 if test -f "$ac_dir/install-sh"; then
1868 ac_aux_dir=$ac_dir
1869 ac_install_sh="$ac_aux_dir/install-sh -c"
1870 break
1871 elif test -f "$ac_dir/install.sh"; then
1872 ac_aux_dir=$ac_dir
1873 ac_install_sh="$ac_aux_dir/install.sh -c"
1874 break
1875 elif test -f "$ac_dir/shtool"; then
1876 ac_aux_dir=$ac_dir
1877 ac_install_sh="$ac_aux_dir/shtool install -c"
1878 break
1879 fi
1880 done
1881 if test -z "$ac_aux_dir"; then
1882 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
1883 fi
1884
1885 # These three variables are undocumented and unsupported,
1886 # and are intended to be withdrawn in a future Autoconf release.
1887 # They can cause serious problems if a builder's source tree is in a directory
1888 # whose full name contains unusual characters.
1889 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1890 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1891 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1892
1893
1894
1895 #AC_CONFIG_HEADERS([config.h])
1896
1897 # AC_DEFINE_SUBST(NAME, VALUE, DESCRIPTION)
1898 # -----------------------------------------
1899
1900
1901 # AC_DEFINE_CONF(NAME, HELP_TEXT, VAR_SET_CODE)
1902 # --------------------------------------
1903
1904
1905 # default configuration
1906 # Don't be stupid by using values like "path/$(nuke_machine)", it gets expanded!
1907
1908 CONF_XDISP=":8"
1909
1910
1911 cat >>confdefs.h <<_ACEOF
1912 #define CONF_XDISP "$CONF_XDISP"
1913 _ACEOF
1914
1915
1916
1917 CONF_SOCKPATH="/var/run/bumblebee.socket"
1918
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define CONF_SOCKPATH "$CONF_SOCKPATH"
1922 _ACEOF
1923
1924
1925
1926 CONF_GID="bumblebee"
1927
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define CONF_GID "$CONF_GID"
1931 _ACEOF
1932
1933
1934
1935 CONF_KEEPONEXIT="false"
1936
1937
1938 cat >>confdefs.h <<_ACEOF
1939 #define CONF_KEEPONEXIT "$CONF_KEEPONEXIT"
1940 _ACEOF
1941
1942
1943
1944 CONF_FALLBACKSTART="false"
1945
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define CONF_FALLBACKSTART "$CONF_FALLBACKSTART"
1949 _ACEOF
1950
1951
1952
1953 CONF_VGLCOMPRESS="proxy"
1954
1955
1956 cat >>confdefs.h <<_ACEOF
1957 #define CONF_VGLCOMPRESS "$CONF_VGLCOMPRESS"
1958 _ACEOF
1959
1960
1961
1962 CONF_TURNOFFATEXIT="false"
1963
1964
1965 cat >>confdefs.h <<_ACEOF
1966 #define CONF_TURNOFFATEXIT "$CONF_TURNOFFATEXIT"
1967 _ACEOF
1968
1969
1970
1971
1972
1973
1974 case $CONF_BRIDGE in
1975 auto|primus|virtualgl) ;;
1976 "") CONF_BRIDGE=auto ;;
1977 *) as_fn_error $? "Invalid value for CONF_BRIDGE" "$LINENO" 5 ;;
1978 esac
1979
1980
1981 cat >>confdefs.h <<_ACEOF
1982 #define CONF_BRIDGE "$CONF_BRIDGE"
1983 _ACEOF
1984
1985
1986
1987
1988
1989
1990 if test "x" = "x$CONF_PRIMUS_LD_PATH"; then
1991 CONF_PRIMUS_LD_PATH="/usr/lib/primus:/usr/lib32/primus"
1992 fi
1993
1994
1995 cat >>confdefs.h <<_ACEOF
1996 #define CONF_PRIMUS_LD_PATH "$CONF_PRIMUS_LD_PATH"
1997 _ACEOF
1998
1999
2000
2001
2002
2003
2004 if test "x" = "x$CONF_PIDFILE"; then
2005 CONF_PIDFILE=/var/run/bumblebeed.pid
2006 fi
2007
2008
2009 cat >>confdefs.h <<_ACEOF
2010 #define CONF_PIDFILE "$CONF_PIDFILE"
2011 _ACEOF
2012
2013
2014
2015
2016
2017
2018 case $CONF_PM_METHOD in
2019 auto|bbswitch|switcheroo|none) ;;
2020 "") CONF_PM_METHOD=auto ;;
2021 *) as_fn_error $? "Invalid value for CONF_PM_METHOD" "$LINENO" 5 ;;
2022 esac
2023
2024
2025 cat >>confdefs.h <<_ACEOF
2026 #define CONF_PM_METHOD "$CONF_PM_METHOD"
2027 _ACEOF
2028
2029
2030
2031
2032
2033 case $CONF_DRIVER in
2034 nvidia|nouveau|"") ;;
2035 *) as_fn_error $? "Invalid value for CONF_DRIVER" "$LINENO" 5 ;;
2036 esac
2037
2038
2039 cat >>confdefs.h <<_ACEOF
2040 #define CONF_DRIVER "$CONF_DRIVER"
2041 _ACEOF
2042
2043
2044
2045
2046
2047
2048
2049 cat >>confdefs.h <<_ACEOF
2050 #define CONF_DRIVER_MODULE_NVIDIA "$CONF_DRIVER_MODULE_NVIDIA"
2051 _ACEOF
2052
2053
2054
2055
2056
2057
2058 cat >>confdefs.h <<_ACEOF
2059 #define CONF_LDPATH_NVIDIA "$CONF_LDPATH_NVIDIA"
2060 _ACEOF
2061
2062
2063
2064
2065
2066
2067 cat >>confdefs.h <<_ACEOF
2068 #define CONF_MODPATH_NVIDIA "$CONF_MODPATH_NVIDIA"
2069 _ACEOF
2070
2071
2072
2073 # non-config related compile-time defines
2074
2075 $as_echo "#define DAEMON_NAME \"bumblebeed\"" >>confdefs.h
2076
2077
2078 am__api_version='1.11'
2079
2080 # Find a good install program. We prefer a C program (faster),
2081 # so one script is as good as another. But avoid the broken or
2082 # incompatible versions:
2083 # SysV /etc/install, /usr/sbin/install
2084 # SunOS /usr/etc/install
2085 # IRIX /sbin/install
2086 # AIX /bin/install
2087 # AmigaOS /C/install, which installs bootblocks on floppy discs
2088 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2089 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2090 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2091 # OS/2's system install, which has a completely different semantic
2092 # ./install, which can be erroneously created by make from ./install.sh.
2093 # Reject install programs that cannot install multiple files.
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2095 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2096 if test -z "$INSTALL"; then
2097 if ${ac_cv_path_install+:} false; then :
2098 $as_echo_n "(cached) " >&6
2099 else
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2102 do
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 # Account for people who put trailing slashes in PATH elements.
2106 case $as_dir/ in #((
2107 ./ | .// | /[cC]/* | \
2108 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2109 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2110 /usr/ucb/* ) ;;
2111 *)
2112 # OSF1 and SCO ODT 3.0 have their own names for install.
2113 # Don't use installbsd from OSF since it installs stuff as root
2114 # by default.
2115 for ac_prog in ginstall scoinst install; do
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2118 if test $ac_prog = install &&
2119 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2120 # AIX install. It has an incompatible calling convention.
2121 :
2122 elif test $ac_prog = install &&
2123 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2124 # program-specific install script used by HP pwplus--don't use.
2125 :
2126 else
2127 rm -rf conftest.one conftest.two conftest.dir
2128 echo one > conftest.one
2129 echo two > conftest.two
2130 mkdir conftest.dir
2131 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2132 test -s conftest.one && test -s conftest.two &&
2133 test -s conftest.dir/conftest.one &&
2134 test -s conftest.dir/conftest.two
2135 then
2136 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2137 break 3
2138 fi
2139 fi
2140 fi
2141 done
2142 done
2143 ;;
2144 esac
2145
2146 done
2147 IFS=$as_save_IFS
2148
2149 rm -rf conftest.one conftest.two conftest.dir
2150
2151 fi
2152 if test "${ac_cv_path_install+set}" = set; then
2153 INSTALL=$ac_cv_path_install
2154 else
2155 # As a last resort, use the slow shell script. Don't cache a
2156 # value for INSTALL within a source directory, because that will
2157 # break other packages using the cache if that directory is
2158 # removed, or if the value is a relative name.
2159 INSTALL=$ac_install_sh
2160 fi
2161 fi
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2163 $as_echo "$INSTALL" >&6; }
2164
2165 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2166 # It thinks the first close brace ends the variable substitution.
2167 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2168
2169 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2170
2171 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2172
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2174 $as_echo_n "checking whether build environment is sane... " >&6; }
2175 # Just in case
2176 sleep 1
2177 echo timestamp > conftest.file
2178 # Reject unsafe characters in $srcdir or the absolute working directory
2179 # name. Accept space and tab only in the latter.
2180 am_lf='
2181 '
2182 case `pwd` in
2183 *[\\\"\#\$\&\'\`$am_lf]*)
2184 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2185 esac
2186 case $srcdir in
2187 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2188 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2189 esac
2190
2191 # Do `set' in a subshell so we don't clobber the current shell's
2192 # arguments. Must try -L first in case configure is actually a
2193 # symlink; some systems play weird games with the mod time of symlinks
2194 # (eg FreeBSD returns the mod time of the symlink's containing
2195 # directory).
2196 if (
2197 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2198 if test "$*" = "X"; then
2199 # -L didn't work.
2200 set X `ls -t "$srcdir/configure" conftest.file`
2201 fi
2202 rm -f conftest.file
2203 if test "$*" != "X $srcdir/configure conftest.file" \
2204 && test "$*" != "X conftest.file $srcdir/configure"; then
2205
2206 # If neither matched, then we have a broken ls. This can happen
2207 # if, for instance, CONFIG_SHELL is bash and it inherits a
2208 # broken ls alias from the environment. This has actually
2209 # happened. Such a system could not be considered "sane".
2210 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2211 alias in your environment" "$LINENO" 5
2212 fi
2213
2214 test "$2" = conftest.file
2215 )
2216 then
2217 # Ok.
2218 :
2219 else
2220 as_fn_error $? "newly created file is older than distributed files!
2221 Check your system clock" "$LINENO" 5
2222 fi
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2224 $as_echo "yes" >&6; }
2225 test "$program_prefix" != NONE &&
2226 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2227 # Use a double $ so make ignores it.
2228 test "$program_suffix" != NONE &&
2229 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2230 # Double any \ or $.
2231 # By default was `s,x,x', remove it if useless.
2232 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2233 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2234
2235 # expand $ac_aux_dir to an absolute path
2236 am_aux_dir=`cd $ac_aux_dir && pwd`
2237
2238 if test x"${MISSING+set}" != xset; then
2239 case $am_aux_dir in
2240 *\ * | *\ *)
2241 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2242 *)
2243 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2244 esac
2245 fi
2246 # Use eval to expand $SHELL
2247 if eval "$MISSING --run true"; then
2248 am_missing_run="$MISSING --run "
2249 else
2250 am_missing_run=
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2252 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2253 fi
2254
2255 if test x"${install_sh}" != xset; then
2256 case $am_aux_dir in
2257 *\ * | *\ *)
2258 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2259 *)
2260 install_sh="\${SHELL} $am_aux_dir/install-sh"
2261 esac
2262 fi
2263
2264 # Installed binaries are usually stripped using `strip' when the user
2265 # run `make install-strip'. However `strip' might not be the right
2266 # tool to use in cross-compilation environments, therefore Automake
2267 # will honor the `STRIP' environment variable to overrule this program.
2268 if test "$cross_compiling" != no; then
2269 if test -n "$ac_tool_prefix"; then
2270 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2271 set dummy ${ac_tool_prefix}strip; ac_word=$2
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2273 $as_echo_n "checking for $ac_word... " >&6; }
2274 if ${ac_cv_prog_STRIP+:} false; then :
2275 $as_echo_n "(cached) " >&6
2276 else
2277 if test -n "$STRIP"; then
2278 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2279 else
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2282 do
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2287 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2289 break 2
2290 fi
2291 done
2292 done
2293 IFS=$as_save_IFS
2294
2295 fi
2296 fi
2297 STRIP=$ac_cv_prog_STRIP
2298 if test -n "$STRIP"; then
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2300 $as_echo "$STRIP" >&6; }
2301 else
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2303 $as_echo "no" >&6; }
2304 fi
2305
2306
2307 fi
2308 if test -z "$ac_cv_prog_STRIP"; then
2309 ac_ct_STRIP=$STRIP
2310 # Extract the first word of "strip", so it can be a program name with args.
2311 set dummy strip; ac_word=$2
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2313 $as_echo_n "checking for $ac_word... " >&6; }
2314 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2315 $as_echo_n "(cached) " >&6
2316 else
2317 if test -n "$ac_ct_STRIP"; then
2318 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323 IFS=$as_save_IFS
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327 ac_cv_prog_ac_ct_STRIP="strip"
2328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 break 2
2330 fi
2331 done
2332 done
2333 IFS=$as_save_IFS
2334
2335 fi
2336 fi
2337 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2338 if test -n "$ac_ct_STRIP"; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2340 $as_echo "$ac_ct_STRIP" >&6; }
2341 else
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2343 $as_echo "no" >&6; }
2344 fi
2345
2346 if test "x$ac_ct_STRIP" = x; then
2347 STRIP=":"
2348 else
2349 case $cross_compiling:$ac_tool_warned in
2350 yes:)
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2353 ac_tool_warned=yes ;;
2354 esac
2355 STRIP=$ac_ct_STRIP
2356 fi
2357 else
2358 STRIP="$ac_cv_prog_STRIP"
2359 fi
2360
2361 fi
2362 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2363
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2365 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2366 if test -z "$MKDIR_P"; then
2367 if ${ac_cv_path_mkdir+:} false; then :
2368 $as_echo_n "(cached) " >&6
2369 else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2372 do
2373 IFS=$as_save_IFS
2374 test -z "$as_dir" && as_dir=.
2375 for ac_prog in mkdir gmkdir; do
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2378 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2379 'mkdir (GNU coreutils) '* | \
2380 'mkdir (coreutils) '* | \
2381 'mkdir (fileutils) '4.1*)
2382 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2383 break 3;;
2384 esac
2385 done
2386 done
2387 done
2388 IFS=$as_save_IFS
2389
2390 fi
2391
2392 test -d ./--version && rmdir ./--version
2393 if test "${ac_cv_path_mkdir+set}" = set; then
2394 MKDIR_P="$ac_cv_path_mkdir -p"
2395 else
2396 # As a last resort, use the slow shell script. Don't cache a
2397 # value for MKDIR_P within a source directory, because that will
2398 # break other packages using the cache if that directory is
2399 # removed, or if the value is a relative name.
2400 MKDIR_P="$ac_install_sh -d"
2401 fi
2402 fi
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2404 $as_echo "$MKDIR_P" >&6; }
2405
2406 mkdir_p="$MKDIR_P"
2407 case $mkdir_p in
2408 [\\/$]* | ?:[\\/]*) ;;
2409 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2410 esac
2411
2412 for ac_prog in gawk mawk nawk awk
2413 do
2414 # Extract the first word of "$ac_prog", so it can be a program name with args.
2415 set dummy $ac_prog; ac_word=$2
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2417 $as_echo_n "checking for $ac_word... " >&6; }
2418 if ${ac_cv_prog_AWK+:} false; then :
2419 $as_echo_n "(cached) " >&6
2420 else
2421 if test -n "$AWK"; then
2422 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2426 do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2431 ac_cv_prog_AWK="$ac_prog"
2432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 break 2
2434 fi
2435 done
2436 done
2437 IFS=$as_save_IFS
2438
2439 fi
2440 fi
2441 AWK=$ac_cv_prog_AWK
2442 if test -n "$AWK"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2444 $as_echo "$AWK" >&6; }
2445 else
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2447 $as_echo "no" >&6; }
2448 fi
2449
2450
2451 test -n "$AWK" && break
2452 done
2453
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2455 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2456 set x ${MAKE-make}
2457 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2458 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 cat >conftest.make <<\_ACEOF
2462 SHELL = /bin/sh
2463 all:
2464 @echo '@@@%%%=$(MAKE)=@@@%%%'
2465 _ACEOF
2466 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2467 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2468 *@@@%%%=?*=@@@%%%*)
2469 eval ac_cv_prog_make_${ac_make}_set=yes;;
2470 *)
2471 eval ac_cv_prog_make_${ac_make}_set=no;;
2472 esac
2473 rm -f conftest.make
2474 fi
2475 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2477 $as_echo "yes" >&6; }
2478 SET_MAKE=
2479 else
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2481 $as_echo "no" >&6; }
2482 SET_MAKE="MAKE=${MAKE-make}"
2483 fi
2484
2485 rm -rf .tst 2>/dev/null
2486 mkdir .tst 2>/dev/null
2487 if test -d .tst; then
2488 am__leading_dot=.
2489 else
2490 am__leading_dot=_
2491 fi
2492 rmdir .tst 2>/dev/null
2493
2494 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2495 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2496 # is not polluted with repeated "-I."
2497 am__isrc=' -I$(srcdir)'
2498 # test to see if srcdir already configured
2499 if test -f $srcdir/config.status; then
2500 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2501 fi
2502 fi
2503
2504 # test whether we have cygpath
2505 if test -z "$CYGPATH_W"; then
2506 if (cygpath --version) >/dev/null 2>/dev/null; then
2507 CYGPATH_W='cygpath -w'
2508 else
2509 CYGPATH_W=echo
2510 fi
2511 fi
2512
2513
2514 # Define the identity of the package.
2515 PACKAGE='bumblebee'
2516 VERSION='3.2.1'
2517
2518
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE "$PACKAGE"
2521 _ACEOF
2522
2523
2524 cat >>confdefs.h <<_ACEOF
2525 #define VERSION "$VERSION"
2526 _ACEOF
2527
2528 # Some tools Automake needs.
2529
2530 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2531
2532
2533 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2534
2535
2536 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2537
2538
2539 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2540
2541
2542 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2543
2544 # We need awk for the "check" target. The system "awk" is bad on
2545 # some platforms.
2546 # Always define AMTAR for backward compatibility. Yes, it's still used
2547 # in the wild :-( We should find a proper way to deprecate it ...
2548 AMTAR='$${TAR-tar}'
2549
2550
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2552 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2553 # Loop over all known methods to create a tar archive until one works.
2554 _am_tools='gnutar pax cpio none'
2555 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2556 # Do not fold the above two line into one, because Tru64 sh and
2557 # Solaris sh will not grok spaces in the rhs of `-'.
2558 for _am_tool in $_am_tools
2559 do
2560 case $_am_tool in
2561 gnutar)
2562 for _am_tar in tar gnutar gtar;
2563 do
2564 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2565 ($_am_tar --version) >&5 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } && break
2569 done
2570 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2571 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2572 am__untar="$_am_tar -xf -"
2573 ;;
2574 plaintar)
2575 # Must skip GNU tar: if it does not support --format= it doesn't create
2576 # ustar tarball either.
2577 (tar --version) >/dev/null 2>&1 && continue
2578 am__tar='tar chf - "$$tardir"'
2579 am__tar_='tar chf - "$tardir"'
2580 am__untar='tar xf -'
2581 ;;
2582 pax)
2583 am__tar='pax -L -x pax -w "$$tardir"'
2584 am__tar_='pax -L -x pax -w "$tardir"'
2585 am__untar='pax -r'
2586 ;;
2587 cpio)
2588 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2589 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2590 am__untar='cpio -i -H pax -d'
2591 ;;
2592 none)
2593 am__tar=false
2594 am__tar_=false
2595 am__untar=false
2596 ;;
2597 esac
2598
2599 # If the value was cached, stop now. We just wanted to have am__tar
2600 # and am__untar set.
2601 test -n "${am_cv_prog_tar_pax}" && break
2602
2603 # tar/untar a dummy directory, and stop if the command works
2604 rm -rf conftest.dir
2605 mkdir conftest.dir
2606 echo GrepMe > conftest.dir/file
2607 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2608 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }
2612 rm -rf conftest.dir
2613 if test -s conftest.tar; then
2614 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2615 ($am__untar <conftest.tar) >&5 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }
2619 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2620 fi
2621 done
2622 rm -rf conftest.dir
2623
2624 if ${am_cv_prog_tar_pax+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 am_cv_prog_tar_pax=$_am_tool
2628 fi
2629
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2631 $as_echo "$am_cv_prog_tar_pax" >&6; }
2632
2633
2634
2635
2636
2637
2638
2639 # Check whether --with-pidfile was given.
2640 if test "${with_pidfile+set}" = set; then :
2641 withval=$with_pidfile;
2642 else
2643 with_pidfile=yes
2644 fi
2645
2646 if test "x$with_pidfile" != xno; then :
2647
2648 $as_echo "#define WITH_PIDFILE 1" >>confdefs.h
2649
2650
2651 fi
2652 if test "x$with_pidfile" != xno; then
2653 WITH_PIDFILE_TRUE=
2654 WITH_PIDFILE_FALSE='#'
2655 else
2656 WITH_PIDFILE_TRUE='#'
2657 WITH_PIDFILE_FALSE=
2658 fi
2659
2660
2661 UDEV_RULES_DIR=/lib/udev/rules.d
2662
2663 # Check whether --with-udev-rules was given.
2664 if test "${with_udev_rules+set}" = set; then :
2665 withval=$with_udev_rules;
2666 else
2667 with_udev_rules=yes
2668 fi
2669
2670 case $with_udev_rules in #(
2671 no) :
2672 UDEV_RULES_DIR= ;; #(
2673 yes) :
2674 ;; #(
2675 *) :
2676 # --with-udev-rules: keep the default
2677 UDEV_RULES_DIR=$with_udev_rules ;;
2678 esac
2679
2680 if test -n "$UDEV_RULES_DIR"; then
2681 WITH_UDEV_RULES_TRUE=
2682 WITH_UDEV_RULES_FALSE='#'
2683 else
2684 WITH_UDEV_RULES_TRUE='#'
2685 WITH_UDEV_RULES_FALSE=
2686 fi
2687
2688
2689 # Checks for programs.
2690 ac_ext=c
2691 ac_cpp='$CPP $CPPFLAGS'
2692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695 if test -n "$ac_tool_prefix"; then
2696 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2697 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if ${ac_cv_prog_CC+:} false; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 if test -n "$CC"; then
2704 ac_cv_prog_CC="$CC" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 break 2
2716 fi
2717 done
2718 done
2719 IFS=$as_save_IFS
2720
2721 fi
2722 fi
2723 CC=$ac_cv_prog_CC
2724 if test -n "$CC"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2726 $as_echo "$CC" >&6; }
2727 else
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2730 fi
2731
2732
2733 fi
2734 if test -z "$ac_cv_prog_CC"; then
2735 ac_ct_CC=$CC
2736 # Extract the first word of "gcc", so it can be a program name with args.
2737 set dummy gcc; ac_word=$2
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2741 $as_echo_n "(cached) " >&6
2742 else
2743 if test -n "$ac_ct_CC"; then
2744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2748 do
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753 ac_cv_prog_ac_ct_CC="gcc"
2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 break 2
2756 fi
2757 done
2758 done
2759 IFS=$as_save_IFS
2760
2761 fi
2762 fi
2763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2764 if test -n "$ac_ct_CC"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2766 $as_echo "$ac_ct_CC" >&6; }
2767 else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2770 fi
2771
2772 if test "x$ac_ct_CC" = x; then
2773 CC=""
2774 else
2775 case $cross_compiling:$ac_tool_warned in
2776 yes:)
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2779 ac_tool_warned=yes ;;
2780 esac
2781 CC=$ac_ct_CC
2782 fi
2783 else
2784 CC="$ac_cv_prog_CC"
2785 fi
2786
2787 if test -z "$CC"; then
2788 if test -n "$ac_tool_prefix"; then
2789 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2790 set dummy ${ac_tool_prefix}cc; ac_word=$2
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if ${ac_cv_prog_CC+:} false; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 if test -n "$CC"; then
2797 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806 ac_cv_prog_CC="${ac_tool_prefix}cc"
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2809 fi
2810 done
2811 done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819 $as_echo "$CC" >&6; }
2820 else
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823 fi
2824
2825
2826 fi
2827 fi
2828 if test -z "$CC"; then
2829 # Extract the first word of "cc", so it can be a program name with args.
2830 set dummy cc; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if ${ac_cv_prog_CC+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if test -n "$CC"; then
2837 ac_cv_prog_CC="$CC" # Let the user override the test.
2838 else
2839 ac_prog_rejected=no
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2848 ac_prog_rejected=yes
2849 continue
2850 fi
2851 ac_cv_prog_CC="cc"
2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855 done
2856 done
2857 IFS=$as_save_IFS
2858
2859 if test $ac_prog_rejected = yes; then
2860 # We found a bogon in the path, so make sure we never use it.
2861 set dummy $ac_cv_prog_CC
2862 shift
2863 if test $# != 0; then
2864 # We chose a different compiler from the bogus one.
2865 # However, it has the same basename, so the bogon will be chosen
2866 # first if we set CC to just the basename; use the full file name.
2867 shift
2868 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2869 fi
2870 fi
2871 fi
2872 fi
2873 CC=$ac_cv_prog_CC
2874 if test -n "$CC"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876 $as_echo "$CC" >&6; }
2877 else
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2880 fi
2881
2882
2883 fi
2884 if test -z "$CC"; then
2885 if test -n "$ac_tool_prefix"; then
2886 for ac_prog in cl.exe
2887 do
2888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if ${ac_cv_prog_CC+:} false; then :
2893 $as_echo_n "(cached) " >&6
2894 else
2895 if test -n "$CC"; then
2896 ac_cv_prog_CC="$CC" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909 done
2910 done
2911 IFS=$as_save_IFS
2912
2913 fi
2914 fi
2915 CC=$ac_cv_prog_CC
2916 if test -n "$CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918 $as_echo "$CC" >&6; }
2919 else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922 fi
2923
2924
2925 test -n "$CC" && break
2926 done
2927 fi
2928 if test -z "$CC"; then
2929 ac_ct_CC=$CC
2930 for ac_prog in cl.exe
2931 do
2932 # Extract the first word of "$ac_prog", so it can be a program name with args.
2933 set dummy $ac_prog; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 if test -n "$ac_ct_CC"; then
2940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_ac_ct_CC="$ac_prog"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2962 $as_echo "$ac_ct_CC" >&6; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969 test -n "$ac_ct_CC" && break
2970 done
2971
2972 if test "x$ac_ct_CC" = x; then
2973 CC=""
2974 else
2975 case $cross_compiling:$ac_tool_warned in
2976 yes:)
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2979 ac_tool_warned=yes ;;
2980 esac
2981 CC=$ac_ct_CC
2982 fi
2983 fi
2984
2985 fi
2986
2987
2988 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 as_fn_error $? "no acceptable C compiler found in \$PATH
2991 See \`config.log' for more details" "$LINENO" 5; }
2992
2993 # Provide some information about the compiler.
2994 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2995 set X $ac_compile
2996 ac_compiler=$2
2997 for ac_option in --version -v -V -qversion; do
2998 { { ac_try="$ac_compiler $ac_option >&5"
2999 case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002 esac
3003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004 $as_echo "$ac_try_echo"; } >&5
3005 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3006 ac_status=$?
3007 if test -s conftest.err; then
3008 sed '10a\
3009 ... rest of stderr output deleted ...
3010 10q' conftest.err >conftest.er1
3011 cat conftest.er1 >&5
3012 fi
3013 rm -f conftest.er1 conftest.err
3014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3015 test $ac_status = 0; }
3016 done
3017
3018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019 /* end confdefs.h. */
3020
3021 int
3022 main ()
3023 {
3024
3025 ;
3026 return 0;
3027 }
3028 _ACEOF
3029 ac_clean_files_save=$ac_clean_files
3030 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3031 # Try to create an executable without -o first, disregard a.out.
3032 # It will help us diagnose broken compilers, and finding out an intuition
3033 # of exeext.
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3035 $as_echo_n "checking whether the C compiler works... " >&6; }
3036 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3037
3038 # The possible output files:
3039 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3040
3041 ac_rmfiles=
3042 for ac_file in $ac_files
3043 do
3044 case $ac_file in
3045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3046 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3047 esac
3048 done
3049 rm -f $ac_rmfiles
3050
3051 if { { ac_try="$ac_link_default"
3052 case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055 esac
3056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057 $as_echo "$ac_try_echo"; } >&5
3058 (eval "$ac_link_default") 2>&5
3059 ac_status=$?
3060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061 test $ac_status = 0; }; then :
3062 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3063 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3064 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3065 # so that the user can short-circuit this test for compilers unknown to
3066 # Autoconf.
3067 for ac_file in $ac_files ''
3068 do
3069 test -f "$ac_file" || continue
3070 case $ac_file in
3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3072 ;;
3073 [ab].out )
3074 # We found the default executable, but exeext='' is most
3075 # certainly right.
3076 break;;
3077 *.* )
3078 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3079 then :; else
3080 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3081 fi
3082 # We set ac_cv_exeext here because the later test for it is not
3083 # safe: cross compilers may not add the suffix if given an `-o'
3084 # argument, so we may need to know it at that point already.
3085 # Even if this section looks crufty: it has the advantage of
3086 # actually working.
3087 break;;
3088 * )
3089 break;;
3090 esac
3091 done
3092 test "$ac_cv_exeext" = no && ac_cv_exeext=
3093
3094 else
3095 ac_file=''
3096 fi
3097 if test -z "$ac_file"; then :
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3100 $as_echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3105 as_fn_error 77 "C compiler cannot create executables
3106 See \`config.log' for more details" "$LINENO" 5; }
3107 else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3109 $as_echo "yes" >&6; }
3110 fi
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3112 $as_echo_n "checking for C compiler default output file name... " >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3114 $as_echo "$ac_file" >&6; }
3115 ac_exeext=$ac_cv_exeext
3116
3117 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3118 ac_clean_files=$ac_clean_files_save
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3120 $as_echo_n "checking for suffix of executables... " >&6; }
3121 if { { ac_try="$ac_link"
3122 case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125 esac
3126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 $as_echo "$ac_try_echo"; } >&5
3128 (eval "$ac_link") 2>&5
3129 ac_status=$?
3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }; then :
3132 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3133 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3134 # work properly (i.e., refer to `conftest.exe'), while it won't with
3135 # `rm'.
3136 for ac_file in conftest.exe conftest conftest.*; do
3137 test -f "$ac_file" || continue
3138 case $ac_file in
3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3140 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3141 break;;
3142 * ) break;;
3143 esac
3144 done
3145 else
3146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3149 See \`config.log' for more details" "$LINENO" 5; }
3150 fi
3151 rm -f conftest conftest$ac_cv_exeext
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3153 $as_echo "$ac_cv_exeext" >&6; }
3154
3155 rm -f conftest.$ac_ext
3156 EXEEXT=$ac_cv_exeext
3157 ac_exeext=$EXEEXT
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3160 #include <stdio.h>
3161 int
3162 main ()
3163 {
3164 FILE *f = fopen ("conftest.out", "w");
3165 return ferror (f) || fclose (f) != 0;
3166
3167 ;
3168 return 0;
3169 }
3170 _ACEOF
3171 ac_clean_files="$ac_clean_files conftest.out"
3172 # Check that the compiler produces executables we can run. If not, either
3173 # the compiler is broken, or we cross compile.
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3175 $as_echo_n "checking whether we are cross compiling... " >&6; }
3176 if test "$cross_compiling" != yes; then
3177 { { ac_try="$ac_link"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_link") 2>&5
3185 ac_status=$?
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }
3188 if { ac_try='./conftest$ac_cv_exeext'
3189 { { case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195 (eval "$ac_try") 2>&5
3196 ac_status=$?
3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198 test $ac_status = 0; }; }; then
3199 cross_compiling=no
3200 else
3201 if test "$cross_compiling" = maybe; then
3202 cross_compiling=yes
3203 else
3204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206 as_fn_error $? "cannot run C compiled programs.
3207 If you meant to cross compile, use \`--host'.
3208 See \`config.log' for more details" "$LINENO" 5; }
3209 fi
3210 fi
3211 fi
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3213 $as_echo "$cross_compiling" >&6; }
3214
3215 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3216 ac_clean_files=$ac_clean_files_save
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3218 $as_echo_n "checking for suffix of object files... " >&6; }
3219 if ${ac_cv_objext+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3224
3225 int
3226 main ()
3227 {
3228
3229 ;
3230 return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.o conftest.obj
3234 if { { ac_try="$ac_compile"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_compile") 2>&5
3242 ac_status=$?
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }; then :
3245 for ac_file in conftest.o conftest.obj conftest.*; do
3246 test -f "$ac_file" || continue;
3247 case $ac_file in
3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3249 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3250 break;;
3251 esac
3252 done
3253 else
3254 $as_echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3256
3257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 as_fn_error $? "cannot compute suffix of object files: cannot compile
3260 See \`config.log' for more details" "$LINENO" 5; }
3261 fi
3262 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3263 fi
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3265 $as_echo "$ac_cv_objext" >&6; }
3266 OBJEXT=$ac_cv_objext
3267 ac_objext=$OBJEXT
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3269 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3270 if ${ac_cv_c_compiler_gnu+:} false; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3275
3276 int
3277 main ()
3278 {
3279 #ifndef __GNUC__
3280 choke me
3281 #endif
3282
3283 ;
3284 return 0;
3285 }
3286 _ACEOF
3287 if ac_fn_c_try_compile "$LINENO"; then :
3288 ac_compiler_gnu=yes
3289 else
3290 ac_compiler_gnu=no
3291 fi
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3294
3295 fi
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3297 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3298 if test $ac_compiler_gnu = yes; then
3299 GCC=yes
3300 else
3301 GCC=
3302 fi
3303 ac_test_CFLAGS=${CFLAGS+set}
3304 ac_save_CFLAGS=$CFLAGS
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3306 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3307 if ${ac_cv_prog_cc_g+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 ac_save_c_werror_flag=$ac_c_werror_flag
3311 ac_c_werror_flag=yes
3312 ac_cv_prog_cc_g=no
3313 CFLAGS="-g"
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3316
3317 int
3318 main ()
3319 {
3320
3321 ;
3322 return 0;
3323 }
3324 _ACEOF
3325 if ac_fn_c_try_compile "$LINENO"; then :
3326 ac_cv_prog_cc_g=yes
3327 else
3328 CFLAGS=""
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3331
3332 int
3333 main ()
3334 {
3335
3336 ;
3337 return 0;
3338 }
3339 _ACEOF
3340 if ac_fn_c_try_compile "$LINENO"; then :
3341
3342 else
3343 ac_c_werror_flag=$ac_save_c_werror_flag
3344 CFLAGS="-g"
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3347
3348 int
3349 main ()
3350 {
3351
3352 ;
3353 return 0;
3354 }
3355 _ACEOF
3356 if ac_fn_c_try_compile "$LINENO"; then :
3357 ac_cv_prog_cc_g=yes
3358 fi
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 fi
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 fi
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 ac_c_werror_flag=$ac_save_c_werror_flag
3365 fi
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3367 $as_echo "$ac_cv_prog_cc_g" >&6; }
3368 if test "$ac_test_CFLAGS" = set; then
3369 CFLAGS=$ac_save_CFLAGS
3370 elif test $ac_cv_prog_cc_g = yes; then
3371 if test "$GCC" = yes; then
3372 CFLAGS="-g -O2"
3373 else
3374 CFLAGS="-g"
3375 fi
3376 else
3377 if test "$GCC" = yes; then
3378 CFLAGS="-O2"
3379 else
3380 CFLAGS=
3381 fi
3382 fi
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3384 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3385 if ${ac_cv_prog_cc_c89+:} false; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 ac_cv_prog_cc_c89=no
3389 ac_save_CC=$CC
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3392 #include <stdarg.h>
3393 #include <stdio.h>
3394 struct stat;
3395 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3396 struct buf { int x; };
3397 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3398 static char *e (p, i)
3399 char **p;
3400 int i;
3401 {
3402 return p[i];
3403 }
3404 static char *f (char * (*g) (char **, int), char **p, ...)
3405 {
3406 char *s;
3407 va_list v;
3408 va_start (v,p);
3409 s = g (p, va_arg (v,int));
3410 va_end (v);
3411 return s;
3412 }
3413
3414 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3415 function prototypes and stuff, but not '\xHH' hex character constants.
3416 These don't provoke an error unfortunately, instead are silently treated
3417 as 'x'. The following induces an error, until -std is added to get
3418 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3419 array size at least. It's necessary to write '\x00'==0 to get something
3420 that's true only with -std. */
3421 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3422
3423 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3424 inside strings and character constants. */
3425 #define FOO(x) 'x'
3426 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3427
3428 int test (int i, double x);
3429 struct s1 {int (*f) (int a);};
3430 struct s2 {int (*f) (double a);};
3431 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3432 int argc;
3433 char **argv;
3434 int
3435 main ()
3436 {
3437 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3438 ;
3439 return 0;
3440 }
3441 _ACEOF
3442 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3443 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3444 do
3445 CC="$ac_save_CC $ac_arg"
3446 if ac_fn_c_try_compile "$LINENO"; then :
3447 ac_cv_prog_cc_c89=$ac_arg
3448 fi
3449 rm -f core conftest.err conftest.$ac_objext
3450 test "x$ac_cv_prog_cc_c89" != "xno" && break
3451 done
3452 rm -f conftest.$ac_ext
3453 CC=$ac_save_CC
3454
3455 fi
3456 # AC_CACHE_VAL
3457 case "x$ac_cv_prog_cc_c89" in
3458 x)
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3460 $as_echo "none needed" >&6; } ;;
3461 xno)
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3463 $as_echo "unsupported" >&6; } ;;
3464 *)
3465 CC="$CC $ac_cv_prog_cc_c89"
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3467 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3468 esac
3469 if test "x$ac_cv_prog_cc_c89" != xno; then :
3470
3471 fi
3472
3473 ac_ext=c
3474 ac_cpp='$CPP $CPPFLAGS'
3475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478 DEPDIR="${am__leading_dot}deps"
3479
3480 ac_config_commands="$ac_config_commands depfiles"
3481
3482
3483 am_make=${MAKE-make}
3484 cat > confinc << 'END'
3485 am__doit:
3486 @echo this is the am__doit target
3487 .PHONY: am__doit
3488 END
3489 # If we don't find an include directive, just comment out the code.
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3491 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3492 am__include="#"
3493 am__quote=
3494 _am_result=none
3495 # First try GNU make style include.
3496 echo "include confinc" > confmf
3497 # Ignore all kinds of additional output from `make'.
3498 case `$am_make -s -f confmf 2> /dev/null` in #(
3499 *the\ am__doit\ target*)
3500 am__include=include
3501 am__quote=
3502 _am_result=GNU
3503 ;;
3504 esac
3505 # Now try BSD make style include.
3506 if test "$am__include" = "#"; then
3507 echo '.include "confinc"' > confmf
3508 case `$am_make -s -f confmf 2> /dev/null` in #(
3509 *the\ am__doit\ target*)
3510 am__include=.include
3511 am__quote="\""
3512 _am_result=BSD
3513 ;;
3514 esac
3515 fi
3516
3517
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3519 $as_echo "$_am_result" >&6; }
3520 rm -f confinc confmf
3521
3522 # Check whether --enable-dependency-tracking was given.
3523 if test "${enable_dependency_tracking+set}" = set; then :
3524 enableval=$enable_dependency_tracking;
3525 fi
3526
3527 if test "x$enable_dependency_tracking" != xno; then
3528 am_depcomp="$ac_aux_dir/depcomp"
3529 AMDEPBACKSLASH='\'
3530 am__nodep='_no'
3531 fi
3532 if test "x$enable_dependency_tracking" != xno; then
3533 AMDEP_TRUE=
3534 AMDEP_FALSE='#'
3535 else
3536 AMDEP_TRUE='#'
3537 AMDEP_FALSE=
3538 fi
3539
3540
3541
3542 depcc="$CC" am_compiler_list=
3543
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3545 $as_echo_n "checking dependency style of $depcc... " >&6; }
3546 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3550 # We make a subdir and do the tests there. Otherwise we can end up
3551 # making bogus files that we don't know about and never remove. For
3552 # instance it was reported that on HP-UX the gcc test will end up
3553 # making a dummy file named `D' -- because `-MD' means `put the output
3554 # in D'.
3555 rm -rf conftest.dir
3556 mkdir conftest.dir
3557 # Copy depcomp to subdir because otherwise we won't find it if we're
3558 # using a relative directory.
3559 cp "$am_depcomp" conftest.dir
3560 cd conftest.dir
3561 # We will build objects and dependencies in a subdirectory because
3562 # it helps to detect inapplicable dependency modes. For instance
3563 # both Tru64's cc and ICC support -MD to output dependencies as a
3564 # side effect of compilation, but ICC will put the dependencies in
3565 # the current directory while Tru64 will put them in the object
3566 # directory.
3567 mkdir sub
3568
3569 am_cv_CC_dependencies_compiler_type=none
3570 if test "$am_compiler_list" = ""; then
3571 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3572 fi
3573 am__universal=false
3574 case " $depcc " in #(
3575 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3576 esac
3577
3578 for depmode in $am_compiler_list; do
3579 # Setup a source with many dependencies, because some compilers
3580 # like to wrap large dependency lists on column 80 (with \), and
3581 # we should not choose a depcomp mode which is confused by this.
3582 #
3583 # We need to recreate these files for each test, as the compiler may
3584 # overwrite some of them when testing with obscure command lines.
3585 # This happens at least with the AIX C compiler.
3586 : > sub/conftest.c
3587 for i in 1 2 3 4 5 6; do
3588 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3589 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3590 # Solaris 8's {/usr,}/bin/sh.
3591 touch sub/conftst$i.h
3592 done
3593 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3594
3595 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3596 # mode. It turns out that the SunPro C++ compiler does not properly
3597 # handle `-M -o', and we need to detect this. Also, some Intel
3598 # versions had trouble with output in subdirs
3599 am__obj=sub/conftest.${OBJEXT-o}
3600 am__minus_obj="-o $am__obj"
3601 case $depmode in
3602 gcc)
3603 # This depmode causes a compiler race in universal mode.
3604 test "$am__universal" = false || continue
3605 ;;
3606 nosideeffect)
3607 # after this tag, mechanisms are not by side-effect, so they'll
3608 # only be used when explicitly requested
3609 if test "x$enable_dependency_tracking" = xyes; then
3610 continue
3611 else
3612 break
3613 fi
3614 ;;
3615 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3616 # This compiler won't grok `-c -o', but also, the minuso test has
3617 # not run yet. These depmodes are late enough in the game, and
3618 # so weak that their functioning should not be impacted.
3619 am__obj=conftest.${OBJEXT-o}
3620 am__minus_obj=
3621 ;;
3622 none) break ;;
3623 esac
3624 if depmode=$depmode \
3625 source=sub/conftest.c object=$am__obj \
3626 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3627 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3628 >/dev/null 2>conftest.err &&
3629 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3630 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3631 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3632 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3633 # icc doesn't choke on unknown options, it will just issue warnings
3634 # or remarks (even with -Werror). So we grep stderr for any message
3635 # that says an option was ignored or not supported.
3636 # When given -MP, icc 7.0 and 7.1 complain thusly:
3637 # icc: Command line warning: ignoring option '-M'; no argument required
3638 # The diagnosis changed in icc 8.0:
3639 # icc: Command line remark: option '-MP' not supported
3640 if (grep 'ignoring option' conftest.err ||
3641 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3642 am_cv_CC_dependencies_compiler_type=$depmode
3643 break
3644 fi
3645 fi
3646 done
3647
3648 cd ..
3649 rm -rf conftest.dir
3650 else
3651 am_cv_CC_dependencies_compiler_type=none
3652 fi
3653
3654 fi
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3656 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3657 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3658
3659 if
3660 test "x$enable_dependency_tracking" != xno \
3661 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3662 am__fastdepCC_TRUE=
3663 am__fastdepCC_FALSE='#'
3664 else
3665 am__fastdepCC_TRUE='#'
3666 am__fastdepCC_FALSE=
3667 fi
3668
3669
3670 if test "x$CC" != xcc; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3672 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3673 else
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3675 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3676 fi
3677 set dummy $CC; ac_cc=`$as_echo "$2" |
3678 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3679 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3684
3685 int
3686 main ()
3687 {
3688
3689 ;
3690 return 0;
3691 }
3692 _ACEOF
3693 # Make sure it works both with $CC and with simple cc.
3694 # We do the test twice because some compilers refuse to overwrite an
3695 # existing .o file with -o, though they will create one.
3696 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3697 rm -f conftest2.*
3698 if { { case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703 $as_echo "$ac_try_echo"; } >&5
3704 (eval "$ac_try") 2>&5
3705 ac_status=$?
3706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707 test $ac_status = 0; } &&
3708 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_try") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; };
3718 then
3719 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3720 if test "x$CC" != xcc; then
3721 # Test first that cc exists at all.
3722 if { ac_try='cc -c conftest.$ac_ext >&5'
3723 { { case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726 esac
3727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728 $as_echo "$ac_try_echo"; } >&5
3729 (eval "$ac_try") 2>&5
3730 ac_status=$?
3731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732 test $ac_status = 0; }; }; then
3733 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3734 rm -f conftest2.*
3735 if { { case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738 esac
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741 (eval "$ac_try") 2>&5
3742 ac_status=$?
3743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744 test $ac_status = 0; } &&
3745 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3748 esac
3749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3750 $as_echo "$ac_try_echo"; } >&5
3751 (eval "$ac_try") 2>&5
3752 ac_status=$?
3753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754 test $ac_status = 0; };
3755 then
3756 # cc works too.
3757 :
3758 else
3759 # cc exists but doesn't like -o.
3760 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3761 fi
3762 fi
3763 fi
3764 else
3765 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3766 fi
3767 rm -f core conftest*
3768
3769 fi
3770 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3772 $as_echo "yes" >&6; }
3773 else
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3776
3777 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3778
3779 fi
3780
3781 # FIXME: we rely on the cache variable name because
3782 # there is no other way.
3783 set dummy $CC
3784 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3785 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3786 if test "$am_t" != yes; then
3787 # Losing compiler, so override with the script.
3788 # FIXME: It is wrong to rewrite CC.
3789 # But if we don't then we get into trouble of one sort or another.
3790 # A longer-term fix would be to have automake use am__CC in this case,
3791 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3792 CC="$am_aux_dir/compile $CC"
3793 fi
3794
3795
3796 # Extract the first word of "help2man", so it can be a program name with args.
3797 set dummy help2man; ac_word=$2
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799 $as_echo_n "checking for $ac_word... " >&6; }
3800 if ${ac_cv_path_HELP2MAN+:} false; then :
3801 $as_echo_n "(cached) " >&6
3802 else
3803 case $HELP2MAN in
3804 [\\/]* | ?:[\\/]*)
3805 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
3806 ;;
3807 *)
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3810 do
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
3816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 break 2
3818 fi
3819 done
3820 done
3821 IFS=$as_save_IFS
3822
3823 ;;
3824 esac
3825 fi
3826 HELP2MAN=$ac_cv_path_HELP2MAN
3827 if test -n "$HELP2MAN"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
3829 $as_echo "$HELP2MAN" >&6; }
3830 else
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3833 fi
3834
3835
3836 if test -n "$HELP2MAN"; then
3837 HAVE_HELP2MAN_TRUE=
3838 HAVE_HELP2MAN_FALSE='#'
3839 else
3840 HAVE_HELP2MAN_TRUE='#'
3841 HAVE_HELP2MAN_FALSE=
3842 fi
3843
3844 if test x"$HELP2MAN" = x; then
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find help2man, you will not be able to generate
3846 manpages" >&5
3847 $as_echo "$as_me: WARNING: cannot find help2man, you will not be able to generate
3848 manpages" >&2;}
3849 fi
3850
3851 regular_CPPFLAGS="-D_FILE_OFFSET_BITS=64 -D_REENTRANT"
3852 regular_CFLAGS="-Wall -Waggregate-return \
3853 -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls \
3854 -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe"
3855
3856
3857
3858 # Checks for libraries.
3859 #AC_CHECK_LIB([bsd], [pidfile_open])
3860
3861 # Checks for header files.
3862
3863
3864
3865
3866
3867
3868
3869 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3870 if test -n "$ac_tool_prefix"; then
3871 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3872 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874 $as_echo_n "checking for $ac_word... " >&6; }
3875 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3876 $as_echo_n "(cached) " >&6
3877 else
3878 case $PKG_CONFIG in
3879 [\\/]* | ?:[\\/]*)
3880 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3881 ;;
3882 *)
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3885 do
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 break 2
3893 fi
3894 done
3895 done
3896 IFS=$as_save_IFS
3897
3898 ;;
3899 esac
3900 fi
3901 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3902 if test -n "$PKG_CONFIG"; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3904 $as_echo "$PKG_CONFIG" >&6; }
3905 else
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907 $as_echo "no" >&6; }
3908 fi
3909
3910
3911 fi
3912 if test -z "$ac_cv_path_PKG_CONFIG"; then
3913 ac_pt_PKG_CONFIG=$PKG_CONFIG
3914 # Extract the first word of "pkg-config", so it can be a program name with args.
3915 set dummy pkg-config; ac_word=$2
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917 $as_echo_n "checking for $ac_word... " >&6; }
3918 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 case $ac_pt_PKG_CONFIG in
3922 [\\/]* | ?:[\\/]*)
3923 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3924 ;;
3925 *)
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929 IFS=$as_save_IFS
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 break 2
3936 fi
3937 done
3938 done
3939 IFS=$as_save_IFS
3940
3941 ;;
3942 esac
3943 fi
3944 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3945 if test -n "$ac_pt_PKG_CONFIG"; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3947 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3948 else
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3951 fi
3952
3953 if test "x$ac_pt_PKG_CONFIG" = x; then
3954 PKG_CONFIG=""
3955 else
3956 case $cross_compiling:$ac_tool_warned in
3957 yes:)
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3960 ac_tool_warned=yes ;;
3961 esac
3962 PKG_CONFIG=$ac_pt_PKG_CONFIG
3963 fi
3964 else
3965 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3966 fi
3967
3968 fi
3969 if test -n "$PKG_CONFIG"; then
3970 _pkg_min_version=0.9.0
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3972 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3973 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3975 $as_echo "yes" >&6; }
3976 else
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3979 PKG_CONFIG=""
3980 fi
3981 fi
3982
3983 pkg_failed=no
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x11" >&5
3985 $as_echo_n "checking for x11... " >&6; }
3986
3987 if test -n "$x11_CFLAGS"; then
3988 pkg_cv_x11_CFLAGS="$x11_CFLAGS"
3989 elif test -n "$PKG_CONFIG"; then
3990 if test -n "$PKG_CONFIG" && \
3991 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
3992 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
3993 ac_status=$?
3994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995 test $ac_status = 0; }; then
3996 pkg_cv_x11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
3997 test "x$?" != "x0" && pkg_failed=yes
3998 else
3999 pkg_failed=yes
4000 fi
4001 else
4002 pkg_failed=untried
4003 fi
4004 if test -n "$x11_LIBS"; then
4005 pkg_cv_x11_LIBS="$x11_LIBS"
4006 elif test -n "$PKG_CONFIG"; then
4007 if test -n "$PKG_CONFIG" && \
4008 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
4009 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
4010 ac_status=$?
4011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012 test $ac_status = 0; }; then
4013 pkg_cv_x11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
4014 test "x$?" != "x0" && pkg_failed=yes
4015 else
4016 pkg_failed=yes
4017 fi
4018 else
4019 pkg_failed=untried
4020 fi
4021
4022
4023
4024 if test $pkg_failed = yes; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026 $as_echo "no" >&6; }
4027
4028 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4029 _pkg_short_errors_supported=yes
4030 else
4031 _pkg_short_errors_supported=no
4032 fi
4033 if test $_pkg_short_errors_supported = yes; then
4034 x11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
4035 else
4036 x11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
4037 fi
4038 # Put the nasty error message in config.log where it belongs
4039 echo "$x11_PKG_ERRORS" >&5
4040
4041 as_fn_error $? "Package requirements (x11) were not met:
4042
4043 $x11_PKG_ERRORS
4044
4045 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4046 installed software in a non-standard prefix.
4047
4048 Alternatively, you may set the environment variables x11_CFLAGS
4049 and x11_LIBS to avoid the need to call pkg-config.
4050 See the pkg-config man page for more details." "$LINENO" 5
4051 elif test $pkg_failed = untried; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4056 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4057 is in your PATH or set the PKG_CONFIG environment variable to the full
4058 path to pkg-config.
4059
4060 Alternatively, you may set the environment variables x11_CFLAGS
4061 and x11_LIBS to avoid the need to call pkg-config.
4062 See the pkg-config man page for more details.
4063
4064 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4065 See \`config.log' for more details" "$LINENO" 5; }
4066 else
4067 x11_CFLAGS=$pkg_cv_x11_CFLAGS
4068 x11_LIBS=$pkg_cv_x11_LIBS
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4070 $as_echo "yes" >&6; }
4071
4072 fi
4073
4074 pkg_failed=no
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5
4076 $as_echo_n "checking for glib... " >&6; }
4077
4078 if test -n "$glib_CFLAGS"; then
4079 pkg_cv_glib_CFLAGS="$glib_CFLAGS"
4080 elif test -n "$PKG_CONFIG"; then
4081 if test -n "$PKG_CONFIG" && \
4082 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
4083 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
4084 ac_status=$?
4085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086 test $ac_status = 0; }; then
4087 pkg_cv_glib_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
4088 test "x$?" != "x0" && pkg_failed=yes
4089 else
4090 pkg_failed=yes
4091 fi
4092 else
4093 pkg_failed=untried
4094 fi
4095 if test -n "$glib_LIBS"; then
4096 pkg_cv_glib_LIBS="$glib_LIBS"
4097 elif test -n "$PKG_CONFIG"; then
4098 if test -n "$PKG_CONFIG" && \
4099 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
4100 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
4101 ac_status=$?
4102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4103 test $ac_status = 0; }; then
4104 pkg_cv_glib_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
4105 test "x$?" != "x0" && pkg_failed=yes
4106 else
4107 pkg_failed=yes
4108 fi
4109 else
4110 pkg_failed=untried
4111 fi
4112
4113
4114
4115 if test $pkg_failed = yes; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4118
4119 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4120 _pkg_short_errors_supported=yes
4121 else
4122 _pkg_short_errors_supported=no
4123 fi
4124 if test $_pkg_short_errors_supported = yes; then
4125 glib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0" 2>&1`
4126 else
4127 glib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0" 2>&1`
4128 fi
4129 # Put the nasty error message in config.log where it belongs
4130 echo "$glib_PKG_ERRORS" >&5
4131
4132 as_fn_error $? "Package requirements (glib-2.0) were not met:
4133
4134 $glib_PKG_ERRORS
4135
4136 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4137 installed software in a non-standard prefix.
4138
4139 Alternatively, you may set the environment variables glib_CFLAGS
4140 and glib_LIBS to avoid the need to call pkg-config.
4141 See the pkg-config man page for more details." "$LINENO" 5
4142 elif test $pkg_failed = untried; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4147 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4148 is in your PATH or set the PKG_CONFIG environment variable to the full
4149 path to pkg-config.
4150
4151 Alternatively, you may set the environment variables glib_CFLAGS
4152 and glib_LIBS to avoid the need to call pkg-config.
4153 See the pkg-config man page for more details.
4154
4155 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4156 See \`config.log' for more details" "$LINENO" 5; }
4157 else
4158 glib_CFLAGS=$pkg_cv_glib_CFLAGS
4159 glib_LIBS=$pkg_cv_glib_LIBS
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4161 $as_echo "yes" >&6; }
4162
4163 fi
4164 if test "x$with_pidfile" != xno; then :
4165
4166
4167 pkg_failed=no
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbsd" >&5
4169 $as_echo_n "checking for libbsd... " >&6; }
4170
4171 if test -n "$libbsd_CFLAGS"; then
4172 pkg_cv_libbsd_CFLAGS="$libbsd_CFLAGS"
4173 elif test -n "$PKG_CONFIG"; then
4174 if test -n "$PKG_CONFIG" && \
4175 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd >= 0.2.0\""; } >&5
4176 ($PKG_CONFIG --exists --print-errors "libbsd >= 0.2.0") 2>&5
4177 ac_status=$?
4178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4179 test $ac_status = 0; }; then
4180 pkg_cv_libbsd_CFLAGS=`$PKG_CONFIG --cflags "libbsd >= 0.2.0" 2>/dev/null`
4181 test "x$?" != "x0" && pkg_failed=yes
4182 else
4183 pkg_failed=yes
4184 fi
4185 else
4186 pkg_failed=untried
4187 fi
4188 if test -n "$libbsd_LIBS"; then
4189 pkg_cv_libbsd_LIBS="$libbsd_LIBS"
4190 elif test -n "$PKG_CONFIG"; then
4191 if test -n "$PKG_CONFIG" && \
4192 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd >= 0.2.0\""; } >&5
4193 ($PKG_CONFIG --exists --print-errors "libbsd >= 0.2.0") 2>&5
4194 ac_status=$?
4195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4196 test $ac_status = 0; }; then
4197 pkg_cv_libbsd_LIBS=`$PKG_CONFIG --libs "libbsd >= 0.2.0" 2>/dev/null`
4198 test "x$?" != "x0" && pkg_failed=yes
4199 else
4200 pkg_failed=yes
4201 fi
4202 else
4203 pkg_failed=untried
4204 fi
4205
4206
4207
4208 if test $pkg_failed = yes; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210 $as_echo "no" >&6; }
4211
4212 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4213 _pkg_short_errors_supported=yes
4214 else
4215 _pkg_short_errors_supported=no
4216 fi
4217 if test $_pkg_short_errors_supported = yes; then
4218 libbsd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd >= 0.2.0" 2>&1`
4219 else
4220 libbsd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd >= 0.2.0" 2>&1`
4221 fi
4222 # Put the nasty error message in config.log where it belongs
4223 echo "$libbsd_PKG_ERRORS" >&5
4224
4225 as_fn_error $? "Package requirements (libbsd >= 0.2.0) were not met:
4226
4227 $libbsd_PKG_ERRORS
4228
4229 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4230 installed software in a non-standard prefix.
4231
4232 Alternatively, you may set the environment variables libbsd_CFLAGS
4233 and libbsd_LIBS to avoid the need to call pkg-config.
4234 See the pkg-config man page for more details." "$LINENO" 5
4235 elif test $pkg_failed = untried; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237 $as_echo "no" >&6; }
4238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4240 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4241 is in your PATH or set the PKG_CONFIG environment variable to the full
4242 path to pkg-config.
4243
4244 Alternatively, you may set the environment variables libbsd_CFLAGS
4245 and libbsd_LIBS to avoid the need to call pkg-config.
4246 See the pkg-config man page for more details.
4247
4248 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4249 See \`config.log' for more details" "$LINENO" 5; }
4250 else
4251 libbsd_CFLAGS=$pkg_cv_libbsd_CFLAGS
4252 libbsd_LIBS=$pkg_cv_libbsd_LIBS
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4254 $as_echo "yes" >&6; }
4255
4256 fi
4257 if test -n "$PKG_CONFIG" && \
4258 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd = 0.2.0\""; } >&5
4259 ($PKG_CONFIG --exists --print-errors "libbsd = 0.2.0") 2>&5
4260 ac_status=$?
4261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4262 test $ac_status = 0; }; then
4263 $as_echo "#define HAVE_LIBBSD_020 1" >>confdefs.h
4264
4265 fi
4266
4267 fi
4268
4269 ac_config_files="$ac_config_files Makefile"
4270
4271 cat >confcache <<\_ACEOF
4272 # This file is a shell script that caches the results of configure
4273 # tests run on this system so they can be shared between configure
4274 # scripts and configure runs, see configure's option --config-cache.
4275 # It is not useful on other systems. If it contains results you don't
4276 # want to keep, you may remove or edit it.
4277 #
4278 # config.status only pays attention to the cache file if you give it
4279 # the --recheck option to rerun configure.
4280 #
4281 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4282 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4283 # following values.
4284
4285 _ACEOF
4286
4287 # The following way of writing the cache mishandles newlines in values,
4288 # but we know of no workaround that is simple, portable, and efficient.
4289 # So, we kill variables containing newlines.
4290 # Ultrix sh set writes to stderr and can't be redirected directly,
4291 # and sets the high bit in the cache file unless we assign to the vars.
4292 (
4293 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4294 eval ac_val=\$$ac_var
4295 case $ac_val in #(
4296 *${as_nl}*)
4297 case $ac_var in #(
4298 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4299 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4300 esac
4301 case $ac_var in #(
4302 _ | IFS | as_nl) ;; #(
4303 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4304 *) { eval $ac_var=; unset $ac_var;} ;;
4305 esac ;;
4306 esac
4307 done
4308
4309 (set) 2>&1 |
4310 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4311 *${as_nl}ac_space=\ *)
4312 # `set' does not quote correctly, so add quotes: double-quote
4313 # substitution turns \\\\ into \\, and sed turns \\ into \.
4314 sed -n \
4315 "s/'/'\\\\''/g;
4316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4317 ;; #(
4318 *)
4319 # `set' quotes correctly as required by POSIX, so do not add quotes.
4320 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4321 ;;
4322 esac |
4323 sort
4324 ) |
4325 sed '
4326 /^ac_cv_env_/b end
4327 t clear
4328 :clear
4329 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4330 t end
4331 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4332 :end' >>confcache
4333 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4334 if test -w "$cache_file"; then
4335 if test "x$cache_file" != "x/dev/null"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4337 $as_echo "$as_me: updating cache $cache_file" >&6;}
4338 if test ! -f "$cache_file" || test -h "$cache_file"; then
4339 cat confcache >"$cache_file"
4340 else
4341 case $cache_file in #(
4342 */* | ?:*)
4343 mv -f confcache "$cache_file"$$ &&
4344 mv -f "$cache_file"$$ "$cache_file" ;; #(
4345 *)
4346 mv -f confcache "$cache_file" ;;
4347 esac
4348 fi
4349 fi
4350 else
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4352 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4353 fi
4354 fi
4355 rm -f confcache
4356
4357 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4358 # Let make expand exec_prefix.
4359 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4360
4361 # Transform confdefs.h into DEFS.
4362 # Protect against shell expansion while executing Makefile rules.
4363 # Protect against Makefile macro expansion.
4364 #
4365 # If the first sed substitution is executed (which looks for macros that
4366 # take arguments), then branch to the quote section. Otherwise,
4367 # look for a macro that doesn't take arguments.
4368 ac_script='
4369 :mline
4370 /\\$/{
4371 N
4372 s,\\\n,,
4373 b mline
4374 }
4375 t clear
4376 :clear
4377 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4378 t quote
4379 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4380 t quote
4381 b any
4382 :quote
4383 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4384 s/\[/\\&/g
4385 s/\]/\\&/g
4386 s/\$/$$/g
4387 H
4388 :any
4389 ${
4390 g
4391 s/^\n//
4392 s/\n/ /g
4393 p
4394 }
4395 '
4396 DEFS=`sed -n "$ac_script" confdefs.h`
4397
4398
4399 ac_libobjs=
4400 ac_ltlibobjs=
4401 U=
4402 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4403 # 1. Remove the extension, and $U if already installed.
4404 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4405 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4406 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4407 # will be set to the directory where LIBOBJS objects are built.
4408 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4409 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4410 done
4411 LIBOBJS=$ac_libobjs
4412
4413 LTLIBOBJS=$ac_ltlibobjs
4414
4415
4416 if test -n "$EXEEXT"; then
4417 am__EXEEXT_TRUE=
4418 am__EXEEXT_FALSE='#'
4419 else
4420 am__EXEEXT_TRUE='#'
4421 am__EXEEXT_FALSE=
4422 fi
4423
4424 if test -z "${WITH_PIDFILE_TRUE}" && test -z "${WITH_PIDFILE_FALSE}"; then
4425 as_fn_error $? "conditional \"WITH_PIDFILE\" was never defined.
4426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4427 fi
4428 if test -z "${WITH_UDEV_RULES_TRUE}" && test -z "${WITH_UDEV_RULES_FALSE}"; then
4429 as_fn_error $? "conditional \"WITH_UDEV_RULES\" was never defined.
4430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4431 fi
4432 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4433 as_fn_error $? "conditional \"AMDEP\" was never defined.
4434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4435 fi
4436 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4437 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4439 fi
4440 if test -z "${HAVE_HELP2MAN_TRUE}" && test -z "${HAVE_HELP2MAN_FALSE}"; then
4441 as_fn_error $? "conditional \"HAVE_HELP2MAN\" was never defined.
4442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4443 fi
4444
4445 : "${CONFIG_STATUS=./config.status}"
4446 ac_write_fail=0
4447 ac_clean_files_save=$ac_clean_files
4448 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4450 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4451 as_write_fail=0
4452 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4453 #! $SHELL
4454 # Generated by $as_me.
4455 # Run this file to recreate the current configuration.
4456 # Compiler output produced by configure, useful for debugging
4457 # configure, is in config.log if it exists.
4458
4459 debug=false
4460 ac_cs_recheck=false
4461 ac_cs_silent=false
4462
4463 SHELL=\${CONFIG_SHELL-$SHELL}
4464 export SHELL
4465 _ASEOF
4466 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4467 ## -------------------- ##
4468 ## M4sh Initialization. ##
4469 ## -------------------- ##
4470
4471 # Be more Bourne compatible
4472 DUALCASE=1; export DUALCASE # for MKS sh
4473 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4474 emulate sh
4475 NULLCMD=:
4476 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4477 # is contrary to our usage. Disable this feature.
4478 alias -g '${1+"$@"}'='"$@"'
4479 setopt NO_GLOB_SUBST
4480 else
4481 case `(set -o) 2>/dev/null` in #(
4482 *posix*) :
4483 set -o posix ;; #(
4484 *) :
4485 ;;
4486 esac
4487 fi
4488
4489
4490 as_nl='
4491 '
4492 export as_nl
4493 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4494 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4495 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4496 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4497 # Prefer a ksh shell builtin over an external printf program on Solaris,
4498 # but without wasting forks for bash or zsh.
4499 if test -z "$BASH_VERSION$ZSH_VERSION" \
4500 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4501 as_echo='print -r --'
4502 as_echo_n='print -rn --'
4503 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4504 as_echo='printf %s\n'
4505 as_echo_n='printf %s'
4506 else
4507 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4508 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4509 as_echo_n='/usr/ucb/echo -n'
4510 else
4511 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4512 as_echo_n_body='eval
4513 arg=$1;
4514 case $arg in #(
4515 *"$as_nl"*)
4516 expr "X$arg" : "X\\(.*\\)$as_nl";
4517 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4518 esac;
4519 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4520 '
4521 export as_echo_n_body
4522 as_echo_n='sh -c $as_echo_n_body as_echo'
4523 fi
4524 export as_echo_body
4525 as_echo='sh -c $as_echo_body as_echo'
4526 fi
4527
4528 # The user is always right.
4529 if test "${PATH_SEPARATOR+set}" != set; then
4530 PATH_SEPARATOR=:
4531 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4532 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4533 PATH_SEPARATOR=';'
4534 }
4535 fi
4536
4537
4538 # IFS
4539 # We need space, tab and new line, in precisely that order. Quoting is
4540 # there to prevent editors from complaining about space-tab.
4541 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4542 # splitting by setting IFS to empty value.)
4543 IFS=" "" $as_nl"
4544
4545 # Find who we are. Look in the path if we contain no directory separator.
4546 as_myself=
4547 case $0 in #((
4548 *[\\/]* ) as_myself=$0 ;;
4549 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4555 done
4556 IFS=$as_save_IFS
4557
4558 ;;
4559 esac
4560 # We did not find ourselves, most probably we were run as `sh COMMAND'
4561 # in which case we are not to be found in the path.
4562 if test "x$as_myself" = x; then
4563 as_myself=$0
4564 fi
4565 if test ! -f "$as_myself"; then
4566 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4567 exit 1
4568 fi
4569
4570 # Unset variables that we do not need and which cause bugs (e.g. in
4571 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4572 # suppresses any "Segmentation fault" message there. '((' could
4573 # trigger a bug in pdksh 5.2.14.
4574 for as_var in BASH_ENV ENV MAIL MAILPATH
4575 do eval test x\${$as_var+set} = xset \
4576 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4577 done
4578 PS1='$ '
4579 PS2='> '
4580 PS4='+ '
4581
4582 # NLS nuisances.
4583 LC_ALL=C
4584 export LC_ALL
4585 LANGUAGE=C
4586 export LANGUAGE
4587
4588 # CDPATH.
4589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4590
4591
4592 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4593 # ----------------------------------------
4594 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4595 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4596 # script with STATUS, using 1 if that was 0.
4597 as_fn_error ()
4598 {
4599 as_status=$1; test $as_status -eq 0 && as_status=1
4600 if test "$4"; then
4601 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4602 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4603 fi
4604 $as_echo "$as_me: error: $2" >&2
4605 as_fn_exit $as_status
4606 } # as_fn_error
4607
4608
4609 # as_fn_set_status STATUS
4610 # -----------------------
4611 # Set $? to STATUS, without forking.
4612 as_fn_set_status ()
4613 {
4614 return $1
4615 } # as_fn_set_status
4616
4617 # as_fn_exit STATUS
4618 # -----------------
4619 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4620 as_fn_exit ()
4621 {
4622 set +e
4623 as_fn_set_status $1
4624 exit $1
4625 } # as_fn_exit
4626
4627 # as_fn_unset VAR
4628 # ---------------
4629 # Portably unset VAR.
4630 as_fn_unset ()
4631 {
4632 { eval $1=; unset $1;}
4633 }
4634 as_unset=as_fn_unset
4635 # as_fn_append VAR VALUE
4636 # ----------------------
4637 # Append the text in VALUE to the end of the definition contained in VAR. Take
4638 # advantage of any shell optimizations that allow amortized linear growth over
4639 # repeated appends, instead of the typical quadratic growth present in naive
4640 # implementations.
4641 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4642 eval 'as_fn_append ()
4643 {
4644 eval $1+=\$2
4645 }'
4646 else
4647 as_fn_append ()
4648 {
4649 eval $1=\$$1\$2
4650 }
4651 fi # as_fn_append
4652
4653 # as_fn_arith ARG...
4654 # ------------------
4655 # Perform arithmetic evaluation on the ARGs, and store the result in the
4656 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4657 # must be portable across $(()) and expr.
4658 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4659 eval 'as_fn_arith ()
4660 {
4661 as_val=$(( $* ))
4662 }'
4663 else
4664 as_fn_arith ()
4665 {
4666 as_val=`expr "$@" || test $? -eq 1`
4667 }
4668 fi # as_fn_arith
4669
4670
4671 if expr a : '\(a\)' >/dev/null 2>&1 &&
4672 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4673 as_expr=expr
4674 else
4675 as_expr=false
4676 fi
4677
4678 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4679 as_basename=basename
4680 else
4681 as_basename=false
4682 fi
4683
4684 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4685 as_dirname=dirname
4686 else
4687 as_dirname=false
4688 fi
4689
4690 as_me=`$as_basename -- "$0" ||
4691 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4692 X"$0" : 'X\(//\)$' \| \
4693 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4694 $as_echo X/"$0" |
4695 sed '/^.*\/\([^/][^/]*\)\/*$/{
4696 s//\1/
4697 q
4698 }
4699 /^X\/\(\/\/\)$/{
4700 s//\1/
4701 q
4702 }
4703 /^X\/\(\/\).*/{
4704 s//\1/
4705 q
4706 }
4707 s/.*/./; q'`
4708
4709 # Avoid depending upon Character Ranges.
4710 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4711 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4712 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4713 as_cr_digits='0123456789'
4714 as_cr_alnum=$as_cr_Letters$as_cr_digits
4715
4716 ECHO_C= ECHO_N= ECHO_T=
4717 case `echo -n x` in #(((((
4718 -n*)
4719 case `echo 'xy\c'` in
4720 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4721 xy) ECHO_C='\c';;
4722 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4723 ECHO_T=' ';;
4724 esac;;
4725 *)
4726 ECHO_N='-n';;
4727 esac
4728
4729 rm -f conf$$ conf$$.exe conf$$.file
4730 if test -d conf$$.dir; then
4731 rm -f conf$$.dir/conf$$.file
4732 else
4733 rm -f conf$$.dir
4734 mkdir conf$$.dir 2>/dev/null
4735 fi
4736 if (echo >conf$$.file) 2>/dev/null; then
4737 if ln -s conf$$.file conf$$ 2>/dev/null; then
4738 as_ln_s='ln -s'
4739 # ... but there are two gotchas:
4740 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4741 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4742 # In both cases, we have to default to `cp -pR'.
4743 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4744 as_ln_s='cp -pR'
4745 elif ln conf$$.file conf$$ 2>/dev/null; then
4746 as_ln_s=ln
4747 else
4748 as_ln_s='cp -pR'
4749 fi
4750 else
4751 as_ln_s='cp -pR'
4752 fi
4753 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4754 rmdir conf$$.dir 2>/dev/null
4755
4756
4757 # as_fn_mkdir_p
4758 # -------------
4759 # Create "$as_dir" as a directory, including parents if necessary.
4760 as_fn_mkdir_p ()
4761 {
4762
4763 case $as_dir in #(
4764 -*) as_dir=./$as_dir;;
4765 esac
4766 test -d "$as_dir" || eval $as_mkdir_p || {
4767 as_dirs=
4768 while :; do
4769 case $as_dir in #(
4770 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4771 *) as_qdir=$as_dir;;
4772 esac
4773 as_dirs="'$as_qdir' $as_dirs"
4774 as_dir=`$as_dirname -- "$as_dir" ||
4775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4776 X"$as_dir" : 'X\(//\)[^/]' \| \
4777 X"$as_dir" : 'X\(//\)$' \| \
4778 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4779 $as_echo X"$as_dir" |
4780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4781 s//\1/
4782 q
4783 }
4784 /^X\(\/\/\)[^/].*/{
4785 s//\1/
4786 q
4787 }
4788 /^X\(\/\/\)$/{
4789 s//\1/
4790 q
4791 }
4792 /^X\(\/\).*/{
4793 s//\1/
4794 q
4795 }
4796 s/.*/./; q'`
4797 test -d "$as_dir" && break
4798 done
4799 test -z "$as_dirs" || eval "mkdir $as_dirs"
4800 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4801
4802
4803 } # as_fn_mkdir_p
4804 if mkdir -p . 2>/dev/null; then
4805 as_mkdir_p='mkdir -p "$as_dir"'
4806 else
4807 test -d ./-p && rmdir ./-p
4808 as_mkdir_p=false
4809 fi
4810
4811
4812 # as_fn_executable_p FILE
4813 # -----------------------
4814 # Test if FILE is an executable regular file.
4815 as_fn_executable_p ()
4816 {
4817 test -f "$1" && test -x "$1"
4818 } # as_fn_executable_p
4819 as_test_x='test -x'
4820 as_executable_p=as_fn_executable_p
4821
4822 # Sed expression to map a string onto a valid CPP name.
4823 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4824
4825 # Sed expression to map a string onto a valid variable name.
4826 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4827
4828
4829 exec 6>&1
4830 ## ----------------------------------- ##
4831 ## Main body of $CONFIG_STATUS script. ##
4832 ## ----------------------------------- ##
4833 _ASEOF
4834 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4835
4836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4837 # Save the log message, to keep $0 and so on meaningful, and to
4838 # report actual input values of CONFIG_FILES etc. instead of their
4839 # values after options handling.
4840 ac_log="
4841 This file was extended by bumblebee $as_me 3.2.1, which was
4842 generated by GNU Autoconf 2.69. Invocation command line was
4843
4844 CONFIG_FILES = $CONFIG_FILES
4845 CONFIG_HEADERS = $CONFIG_HEADERS
4846 CONFIG_LINKS = $CONFIG_LINKS
4847 CONFIG_COMMANDS = $CONFIG_COMMANDS
4848 $ $0 $@
4849
4850 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4851 "
4852
4853 _ACEOF
4854
4855 case $ac_config_files in *"
4856 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4857 esac
4858
4859
4860
4861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4862 # Files that config.status was made for.
4863 config_files="$ac_config_files"
4864 config_commands="$ac_config_commands"
4865
4866 _ACEOF
4867
4868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4869 ac_cs_usage="\
4870 \`$as_me' instantiates files and other configuration actions
4871 from templates according to the current configuration. Unless the files
4872 and actions are specified as TAGs, all are instantiated by default.
4873
4874 Usage: $0 [OPTION]... [TAG]...
4875
4876 -h, --help print this help, then exit
4877 -V, --version print version number and configuration settings, then exit
4878 --config print configuration, then exit
4879 -q, --quiet, --silent
4880 do not print progress messages
4881 -d, --debug don't remove temporary files
4882 --recheck update $as_me by reconfiguring in the same conditions
4883 --file=FILE[:TEMPLATE]
4884 instantiate the configuration file FILE
4885
4886 Configuration files:
4887 $config_files
4888
4889 Configuration commands:
4890 $config_commands
4891
4892 Report bugs to the package provider."
4893
4894 _ACEOF
4895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4896 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4897 ac_cs_version="\\
4898 bumblebee config.status 3.2.1
4899 configured by $0, generated by GNU Autoconf 2.69,
4900 with options \\"\$ac_cs_config\\"
4901
4902 Copyright (C) 2012 Free Software Foundation, Inc.
4903 This config.status script is free software; the Free Software Foundation
4904 gives unlimited permission to copy, distribute and modify it."
4905
4906 ac_pwd='$ac_pwd'
4907 srcdir='$srcdir'
4908 INSTALL='$INSTALL'
4909 MKDIR_P='$MKDIR_P'
4910 AWK='$AWK'
4911 test -n "\$AWK" || AWK=awk
4912 _ACEOF
4913
4914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4915 # The default lists apply if the user does not specify any file.
4916 ac_need_defaults=:
4917 while test $# != 0
4918 do
4919 case $1 in
4920 --*=?*)
4921 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4922 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4923 ac_shift=:
4924 ;;
4925 --*=)
4926 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4927 ac_optarg=
4928 ac_shift=:
4929 ;;
4930 *)
4931 ac_option=$1
4932 ac_optarg=$2
4933 ac_shift=shift
4934 ;;
4935 esac
4936
4937 case $ac_option in
4938 # Handling of the options.
4939 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4940 ac_cs_recheck=: ;;
4941 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4942 $as_echo "$ac_cs_version"; exit ;;
4943 --config | --confi | --conf | --con | --co | --c )
4944 $as_echo "$ac_cs_config"; exit ;;
4945 --debug | --debu | --deb | --de | --d | -d )
4946 debug=: ;;
4947 --file | --fil | --fi | --f )
4948 $ac_shift
4949 case $ac_optarg in
4950 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4951 '') as_fn_error $? "missing file argument" ;;
4952 esac
4953 as_fn_append CONFIG_FILES " '$ac_optarg'"
4954 ac_need_defaults=false;;
4955 --he | --h | --help | --hel | -h )
4956 $as_echo "$ac_cs_usage"; exit ;;
4957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4958 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4959 ac_cs_silent=: ;;
4960
4961 # This is an error.
4962 -*) as_fn_error $? "unrecognized option: \`$1'
4963 Try \`$0 --help' for more information." ;;
4964
4965 *) as_fn_append ac_config_targets " $1"
4966 ac_need_defaults=false ;;
4967
4968 esac
4969 shift
4970 done
4971
4972 ac_configure_extra_args=
4973
4974 if $ac_cs_silent; then
4975 exec 6>/dev/null
4976 ac_configure_extra_args="$ac_configure_extra_args --silent"
4977 fi
4978
4979 _ACEOF
4980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4981 if \$ac_cs_recheck; then
4982 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4983 shift
4984 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4985 CONFIG_SHELL='$SHELL'
4986 export CONFIG_SHELL
4987 exec "\$@"
4988 fi
4989
4990 _ACEOF
4991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4992 exec 5>>config.log
4993 {
4994 echo
4995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4996 ## Running $as_me. ##
4997 _ASBOX
4998 $as_echo "$ac_log"
4999 } >&5
5000
5001 _ACEOF
5002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5003 #
5004 # INIT-COMMANDS
5005 #
5006 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5007
5008 _ACEOF
5009
5010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5011
5012 # Handling of arguments.
5013 for ac_config_target in $ac_config_targets
5014 do
5015 case $ac_config_target in
5016 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5017 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5018
5019 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5020 esac
5021 done
5022
5023
5024 # If the user did not use the arguments to specify the items to instantiate,
5025 # then the envvar interface is used. Set only those that are not.
5026 # We use the long form for the default assignment because of an extremely
5027 # bizarre bug on SunOS 4.1.3.
5028 if $ac_need_defaults; then
5029 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5030 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5031 fi
5032
5033 # Have a temporary directory for convenience. Make it in the build tree
5034 # simply because there is no reason against having it here, and in addition,
5035 # creating and moving files from /tmp can sometimes cause problems.
5036 # Hook for its removal unless debugging.
5037 # Note that there is a small window in which the directory will not be cleaned:
5038 # after its creation but before its name has been assigned to `$tmp'.
5039 $debug ||
5040 {
5041 tmp= ac_tmp=
5042 trap 'exit_status=$?
5043 : "${ac_tmp:=$tmp}"
5044 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5045 ' 0
5046 trap 'as_fn_exit 1' 1 2 13 15
5047 }
5048 # Create a (secure) tmp directory for tmp files.
5049
5050 {
5051 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5052 test -d "$tmp"
5053 } ||
5054 {
5055 tmp=./conf$$-$RANDOM
5056 (umask 077 && mkdir "$tmp")
5057 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5058 ac_tmp=$tmp
5059
5060 # Set up the scripts for CONFIG_FILES section.
5061 # No need to generate them if there are no CONFIG_FILES.
5062 # This happens for instance with `./config.status config.h'.
5063 if test -n "$CONFIG_FILES"; then
5064
5065
5066 ac_cr=`echo X | tr X '\015'`
5067 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5068 # But we know of no other shell where ac_cr would be empty at this
5069 # point, so we can use a bashism as a fallback.
5070 if test "x$ac_cr" = x; then
5071 eval ac_cr=\$\'\\r\'
5072 fi
5073 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5074 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5075 ac_cs_awk_cr='\\r'
5076 else
5077 ac_cs_awk_cr=$ac_cr
5078 fi
5079
5080 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5081 _ACEOF
5082
5083
5084 {
5085 echo "cat >conf$$subs.awk <<_ACEOF" &&
5086 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5087 echo "_ACEOF"
5088 } >conf$$subs.sh ||
5089 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5090 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5091 ac_delim='%!_!# '
5092 for ac_last_try in false false false false false :; do
5093 . ./conf$$subs.sh ||
5094 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5095
5096 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5097 if test $ac_delim_n = $ac_delim_num; then
5098 break
5099 elif $ac_last_try; then
5100 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5101 else
5102 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5103 fi
5104 done
5105 rm -f conf$$subs.sh
5106
5107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5108 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5109 _ACEOF
5110 sed -n '
5111 h
5112 s/^/S["/; s/!.*/"]=/
5113 p
5114 g
5115 s/^[^!]*!//
5116 :repl
5117 t repl
5118 s/'"$ac_delim"'$//
5119 t delim
5120 :nl
5121 h
5122 s/\(.\{148\}\)..*/\1/
5123 t more1
5124 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5125 p
5126 n
5127 b repl
5128 :more1
5129 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5130 p
5131 g
5132 s/.\{148\}//
5133 t nl
5134 :delim
5135 h
5136 s/\(.\{148\}\)..*/\1/
5137 t more2
5138 s/["\\]/\\&/g; s/^/"/; s/$/"/
5139 p
5140 b
5141 :more2
5142 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5143 p
5144 g
5145 s/.\{148\}//
5146 t delim
5147 ' <conf$$subs.awk | sed '
5148 /^[^""]/{
5149 N
5150 s/\n//
5151 }
5152 ' >>$CONFIG_STATUS || ac_write_fail=1
5153 rm -f conf$$subs.awk
5154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5155 _ACAWK
5156 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5157 for (key in S) S_is_set[key] = 1
5158 FS = ""
5159
5160 }
5161 {
5162 line = $ 0
5163 nfields = split(line, field, "@")
5164 substed = 0
5165 len = length(field[1])
5166 for (i = 2; i < nfields; i++) {
5167 key = field[i]
5168 keylen = length(key)
5169 if (S_is_set[key]) {
5170 value = S[key]
5171 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5172 len += length(value) + length(field[++i])
5173 substed = 1
5174 } else
5175 len += 1 + keylen
5176 }
5177
5178 print line
5179 }
5180
5181 _ACAWK
5182 _ACEOF
5183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5184 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5185 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5186 else
5187 cat
5188 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5189 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5190 _ACEOF
5191
5192 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5193 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5194 # trailing colons and then remove the whole line if VPATH becomes empty
5195 # (actually we leave an empty line to preserve line numbers).
5196 if test "x$srcdir" = x.; then
5197 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5198 h
5199 s///
5200 s/^/:/
5201 s/[ ]*$/:/
5202 s/:\$(srcdir):/:/g
5203 s/:\${srcdir}:/:/g
5204 s/:@srcdir@:/:/g
5205 s/^:*//
5206 s/:*$//
5207 x
5208 s/\(=[ ]*\).*/\1/
5209 G
5210 s/\n//
5211 s/^[^=]*=[ ]*$//
5212 }'
5213 fi
5214
5215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5216 fi # test -n "$CONFIG_FILES"
5217
5218
5219 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
5220 shift
5221 for ac_tag
5222 do
5223 case $ac_tag in
5224 :[FHLC]) ac_mode=$ac_tag; continue;;
5225 esac
5226 case $ac_mode$ac_tag in
5227 :[FHL]*:*);;
5228 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5229 :[FH]-) ac_tag=-:-;;
5230 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5231 esac
5232 ac_save_IFS=$IFS
5233 IFS=:
5234 set x $ac_tag
5235 IFS=$ac_save_IFS
5236 shift
5237 ac_file=$1
5238 shift
5239
5240 case $ac_mode in
5241 :L) ac_source=$1;;
5242 :[FH])
5243 ac_file_inputs=
5244 for ac_f
5245 do
5246 case $ac_f in
5247 -) ac_f="$ac_tmp/stdin";;
5248 *) # Look for the file first in the build tree, then in the source tree
5249 # (if the path is not absolute). The absolute path cannot be DOS-style,
5250 # because $ac_f cannot contain `:'.
5251 test -f "$ac_f" ||
5252 case $ac_f in
5253 [\\/$]*) false;;
5254 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5255 esac ||
5256 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5257 esac
5258 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5259 as_fn_append ac_file_inputs " '$ac_f'"
5260 done
5261
5262 # Let's still pretend it is `configure' which instantiates (i.e., don't
5263 # use $as_me), people would be surprised to read:
5264 # /* config.h. Generated by config.status. */
5265 configure_input='Generated from '`
5266 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5267 `' by configure.'
5268 if test x"$ac_file" != x-; then
5269 configure_input="$ac_file. $configure_input"
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5271 $as_echo "$as_me: creating $ac_file" >&6;}
5272 fi
5273 # Neutralize special characters interpreted by sed in replacement strings.
5274 case $configure_input in #(
5275 *\&* | *\|* | *\\* )
5276 ac_sed_conf_input=`$as_echo "$configure_input" |
5277 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5278 *) ac_sed_conf_input=$configure_input;;
5279 esac
5280
5281 case $ac_tag in
5282 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5283 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5284 esac
5285 ;;
5286 esac
5287
5288 ac_dir=`$as_dirname -- "$ac_file" ||
5289 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5290 X"$ac_file" : 'X\(//\)[^/]' \| \
5291 X"$ac_file" : 'X\(//\)$' \| \
5292 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5293 $as_echo X"$ac_file" |
5294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5295 s//\1/
5296 q
5297 }
5298 /^X\(\/\/\)[^/].*/{
5299 s//\1/
5300 q
5301 }
5302 /^X\(\/\/\)$/{
5303 s//\1/
5304 q
5305 }
5306 /^X\(\/\).*/{
5307 s//\1/
5308 q
5309 }
5310 s/.*/./; q'`
5311 as_dir="$ac_dir"; as_fn_mkdir_p
5312 ac_builddir=.
5313
5314 case "$ac_dir" in
5315 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5316 *)
5317 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5318 # A ".." for each directory in $ac_dir_suffix.
5319 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5320 case $ac_top_builddir_sub in
5321 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5322 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5323 esac ;;
5324 esac
5325 ac_abs_top_builddir=$ac_pwd
5326 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5327 # for backward compatibility:
5328 ac_top_builddir=$ac_top_build_prefix
5329
5330 case $srcdir in
5331 .) # We are building in place.
5332 ac_srcdir=.
5333 ac_top_srcdir=$ac_top_builddir_sub
5334 ac_abs_top_srcdir=$ac_pwd ;;
5335 [\\/]* | ?:[\\/]* ) # Absolute name.
5336 ac_srcdir=$srcdir$ac_dir_suffix;
5337 ac_top_srcdir=$srcdir
5338 ac_abs_top_srcdir=$srcdir ;;
5339 *) # Relative name.
5340 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5341 ac_top_srcdir=$ac_top_build_prefix$srcdir
5342 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5343 esac
5344 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5345
5346
5347 case $ac_mode in
5348 :F)
5349 #
5350 # CONFIG_FILE
5351 #
5352
5353 case $INSTALL in
5354 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5355 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5356 esac
5357 ac_MKDIR_P=$MKDIR_P
5358 case $MKDIR_P in
5359 [\\/$]* | ?:[\\/]* ) ;;
5360 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5361 esac
5362 _ACEOF
5363
5364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5365 # If the template does not know about datarootdir, expand it.
5366 # FIXME: This hack should be removed a few years after 2.60.
5367 ac_datarootdir_hack=; ac_datarootdir_seen=
5368 ac_sed_dataroot='
5369 /datarootdir/ {
5370 p
5371 q
5372 }
5373 /@datadir@/p
5374 /@docdir@/p
5375 /@infodir@/p
5376 /@localedir@/p
5377 /@mandir@/p'
5378 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5379 *datarootdir*) ac_datarootdir_seen=yes;;
5380 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5382 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5383 _ACEOF
5384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5385 ac_datarootdir_hack='
5386 s&@datadir@&$datadir&g
5387 s&@docdir@&$docdir&g
5388 s&@infodir@&$infodir&g
5389 s&@localedir@&$localedir&g
5390 s&@mandir@&$mandir&g
5391 s&\\\${datarootdir}&$datarootdir&g' ;;
5392 esac
5393 _ACEOF
5394
5395 # Neutralize VPATH when `$srcdir' = `.'.
5396 # Shell code in configure.ac might set extrasub.
5397 # FIXME: do we really want to maintain this feature?
5398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5399 ac_sed_extra="$ac_vpsub
5400 $extrasub
5401 _ACEOF
5402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5403 :t
5404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5405 s|@configure_input@|$ac_sed_conf_input|;t t
5406 s&@top_builddir@&$ac_top_builddir_sub&;t t
5407 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5408 s&@srcdir@&$ac_srcdir&;t t
5409 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5410 s&@top_srcdir@&$ac_top_srcdir&;t t
5411 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5412 s&@builddir@&$ac_builddir&;t t
5413 s&@abs_builddir@&$ac_abs_builddir&;t t
5414 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5415 s&@INSTALL@&$ac_INSTALL&;t t
5416 s&@MKDIR_P@&$ac_MKDIR_P&;t t
5417 $ac_datarootdir_hack
5418 "
5419 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5420 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5421
5422 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5423 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5424 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5425 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5427 which seems to be undefined. Please make sure it is defined" >&5
5428 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5429 which seems to be undefined. Please make sure it is defined" >&2;}
5430
5431 rm -f "$ac_tmp/stdin"
5432 case $ac_file in
5433 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5434 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5435 esac \
5436 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5437 ;;
5438
5439
5440 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5441 $as_echo "$as_me: executing $ac_file commands" >&6;}
5442 ;;
5443 esac
5444
5445
5446 case $ac_file$ac_mode in
5447 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
5448 # Autoconf 2.62 quotes --file arguments for eval, but not when files
5449 # are listed without --file. Let's play safe and only enable the eval
5450 # if we detect the quoting.
5451 case $CONFIG_FILES in
5452 *\'*) eval set x "$CONFIG_FILES" ;;
5453 *) set x $CONFIG_FILES ;;
5454 esac
5455 shift
5456 for mf
5457 do
5458 # Strip MF so we end up with the name of the file.
5459 mf=`echo "$mf" | sed -e 's/:.*$//'`
5460 # Check whether this is an Automake generated Makefile or not.
5461 # We used to match only the files named `Makefile.in', but
5462 # some people rename them; so instead we look at the file content.
5463 # Grep'ing the first line is not enough: some people post-process
5464 # each Makefile.in and add a new line on top of each file to say so.
5465 # Grep'ing the whole file is not good either: AIX grep has a line
5466 # limit of 2048, but all sed's we know have understand at least 4000.
5467 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
5468 dirpart=`$as_dirname -- "$mf" ||
5469 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5470 X"$mf" : 'X\(//\)[^/]' \| \
5471 X"$mf" : 'X\(//\)$' \| \
5472 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
5473 $as_echo X"$mf" |
5474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5475 s//\1/
5476 q
5477 }
5478 /^X\(\/\/\)[^/].*/{
5479 s//\1/
5480 q
5481 }
5482 /^X\(\/\/\)$/{
5483 s//\1/
5484 q
5485 }
5486 /^X\(\/\).*/{
5487 s//\1/
5488 q
5489 }
5490 s/.*/./; q'`
5491 else
5492 continue
5493 fi
5494 # Extract the definition of DEPDIR, am__include, and am__quote
5495 # from the Makefile without running `make'.
5496 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5497 test -z "$DEPDIR" && continue
5498 am__include=`sed -n 's/^am__include = //p' < "$mf"`
5499 test -z "am__include" && continue
5500 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5501 # When using ansi2knr, U may be empty or an underscore; expand it
5502 U=`sed -n 's/^U = //p' < "$mf"`
5503 # Find all dependency output files, they are included files with
5504 # $(DEPDIR) in their names. We invoke sed twice because it is the
5505 # simplest approach to changing $(DEPDIR) to its actual value in the
5506 # expansion.
5507 for file in `sed -n "
5508 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5509 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5510 # Make sure the directory exists.
5511 test -f "$dirpart/$file" && continue
5512 fdir=`$as_dirname -- "$file" ||
5513 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5514 X"$file" : 'X\(//\)[^/]' \| \
5515 X"$file" : 'X\(//\)$' \| \
5516 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
5517 $as_echo X"$file" |
5518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5519 s//\1/
5520 q
5521 }
5522 /^X\(\/\/\)[^/].*/{
5523 s//\1/
5524 q
5525 }
5526 /^X\(\/\/\)$/{
5527 s//\1/
5528 q
5529 }
5530 /^X\(\/\).*/{
5531 s//\1/
5532 q
5533 }
5534 s/.*/./; q'`
5535 as_dir=$dirpart/$fdir; as_fn_mkdir_p
5536 # echo "creating $dirpart/$file"
5537 echo '# dummy' > "$dirpart/$file"
5538 done
5539 done
5540 }
5541 ;;
5542
5543 esac
5544 done # for ac_tag
5545
5546
5547 as_fn_exit 0
5548 _ACEOF
5549 ac_clean_files=$ac_clean_files_save
5550
5551 test $ac_write_fail = 0 ||
5552 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5553
5554
5555 # configure is writing to config.log, and then calls config.status.
5556 # config.status does its own redirection, appending to config.log.
5557 # Unfortunately, on DOS this fails, as config.log is still kept open
5558 # by configure, so config.status won't be able to write to it; its
5559 # output is simply discarded. So we exec the FD to /dev/null,
5560 # effectively closing config.log, so it can be properly (re)opened and
5561 # appended to by config.status. When coming back to configure, we
5562 # need to make the FD available again.
5563 if test "$no_create" != yes; then
5564 ac_cs_success=:
5565 ac_config_status_args=
5566 test "$silent" = yes &&
5567 ac_config_status_args="$ac_config_status_args --quiet"
5568 exec 5>/dev/null
5569 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5570 exec 5>>config.log
5571 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5572 # would make configure fail if this is the last instruction.
5573 $ac_cs_success || as_fn_exit 1
5574 fi
5575 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5577 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5578 fi
5579