7828
# Check whether --enable-caml-bindings was given.
7829
if test "${enable_caml_bindings+set}" = set; then
7830
enableval=$enable_caml_bindings;
7836
brltty_enabled_caml_bindings="${enableval}"
7837
brltty_summary_lines="${brltty_summary_lines}
7838
caml-bindings: ${brltty_enabled_caml_bindings}"
7876
# Check whether --enable-java-bindings was given.
7877
if test "${enable_java_bindings+set}" = set; then
7878
enableval=$enable_java_bindings;
7884
brltty_enabled_java_bindings="${enableval}"
7885
brltty_summary_lines="${brltty_summary_lines}
7886
java-bindings: ${brltty_enabled_java_bindings}"
7888
if test "${enableval}" = "no"
7892
if test "${enableval}" = "yes"
7902
###############################################################################
7903
# libbrlapi - A library providing access to braille terminals for applications.
7905
# Copyright (C) 2006-2012 by
7906
# Samuel Thibault <Samuel.Thibault@ens-lyon.org>
7907
# Sébastien Hinderer <Sebastien.Hinderer@ens-lyon.org>
7909
# libbrlapi comes with ABSOLUTELY NO WARRANTY.
7911
# This is free software, placed under the terms of the
7912
# GNU Lesser General Public License, as published by the Free Software
7913
# Foundation; either version 2.1 of the License, or (at your option) any
7914
# later version. Please see the file LICENSE-LGPL for details.
7916
# Web Page: http://mielke.cc/brltty/
7918
# This software is maintained by Dave Mielke <dave@mielke.cc>.
7919
###############################################################################
7927
if test -n "${JAVA_HOME}"
7929
# Extract the first word of "javac", so it can be a program name with args.
7930
set dummy javac; ac_word=$2
7931
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7932
$as_echo_n "checking for $ac_word... " >&6; }
7933
if test "${ac_cv_path_JAVAC_PATH+set}" = set; then
7934
$as_echo_n "(cached) " >&6
7938
ac_cv_path_JAVAC_PATH="$JAVAC_PATH" # Let the user override the test with a path.
7941
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942
for as_dir in "${JAVA_HOME}/bin"
7945
test -z "$as_dir" && as_dir=.
7946
for ac_exec_ext in '' $ac_executable_extensions; do
7947
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948
ac_cv_path_JAVAC_PATH="$as_dir/$ac_word$ac_exec_ext"
7949
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7959
JAVAC_PATH=$ac_cv_path_JAVAC_PATH
7960
if test -n "$JAVAC_PATH"; then
7961
{ $as_echo "$as_me:$LINENO: result: $JAVAC_PATH" >&5
7962
$as_echo "$JAVAC_PATH" >&6; }
7964
{ $as_echo "$as_me:$LINENO: result: no" >&5
7965
$as_echo "no" >&6; }
7969
if test -n "${JAVAC_PATH}"
7974
# Extract the first word of "javac", so it can be a program name with args.
7975
set dummy javac; ac_word=$2
7976
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7977
$as_echo_n "checking for $ac_word... " >&6; }
7978
if test "${ac_cv_path_JAVAC_PATH+set}" = set; then
7979
$as_echo_n "(cached) " >&6
7983
ac_cv_path_JAVAC_PATH="$JAVAC_PATH" # Let the user override the test with a path.
7986
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990
test -z "$as_dir" && as_dir=.
7991
for ac_exec_ext in '' $ac_executable_extensions; do
7992
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7993
ac_cv_path_JAVAC_PATH="$as_dir/$ac_word$ac_exec_ext"
7994
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8004
JAVAC_PATH=$ac_cv_path_JAVAC_PATH
8005
if test -n "$JAVAC_PATH"; then
8006
{ $as_echo "$as_me:$LINENO: result: $JAVAC_PATH" >&5
8007
$as_echo "$JAVAC_PATH" >&6; }
8009
{ $as_echo "$as_me:$LINENO: result: no" >&5
8010
$as_echo "no" >&6; }
8014
if test -n "${JAVAC_PATH}"
8018
# Extract the first word of "javac", so it can be a program name with args.
8019
set dummy javac; ac_word=$2
8020
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8021
$as_echo_n "checking for $ac_word... " >&6; }
8022
if test "${ac_cv_path_JAVAC_PATH+set}" = set; then
8023
$as_echo_n "(cached) " >&6
8027
ac_cv_path_JAVAC_PATH="$JAVAC_PATH" # Let the user override the test with a path.
8030
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031
for as_dir in /usr/java/bin /usr/java/jdk*/bin
8034
test -z "$as_dir" && as_dir=.
8035
for ac_exec_ext in '' $ac_executable_extensions; do
8036
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8037
ac_cv_path_JAVAC_PATH="$as_dir/$ac_word$ac_exec_ext"
8038
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8048
JAVAC_PATH=$ac_cv_path_JAVAC_PATH
8049
if test -n "$JAVAC_PATH"; then
8050
{ $as_echo "$as_me:$LINENO: result: $JAVAC_PATH" >&5
8051
$as_echo "$JAVAC_PATH" >&6; }
8053
{ $as_echo "$as_me:$LINENO: result: no" >&5
8054
$as_echo "no" >&6; }
8058
if test -n "${JAVAC_PATH}"
8062
# Extract the first word of "gcj", so it can be a program name with args.
8063
set dummy gcj; ac_word=$2
8064
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8065
$as_echo_n "checking for $ac_word... " >&6; }
8066
if test "${ac_cv_path_JAVAC_PATH+set}" = set; then
8067
$as_echo_n "(cached) " >&6
8071
ac_cv_path_JAVAC_PATH="$JAVAC_PATH" # Let the user override the test with a path.
8074
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078
test -z "$as_dir" && as_dir=.
8079
for ac_exec_ext in '' $ac_executable_extensions; do
8080
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8081
ac_cv_path_JAVAC_PATH="$as_dir/$ac_word$ac_exec_ext"
8082
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8092
JAVAC_PATH=$ac_cv_path_JAVAC_PATH
8093
if test -n "$JAVAC_PATH"; then
8094
{ $as_echo "$as_me:$LINENO: result: $JAVAC_PATH" >&5
8095
$as_echo "$JAVAC_PATH" >&6; }
8097
{ $as_echo "$as_me:$LINENO: result: no" >&5
8098
$as_echo "no" >&6; }
8102
if test -n "${JAVAC_PATH}"
8113
if test -n "${JAVAC_PATH}"
8115
{ $as_echo "$as_me:$LINENO: Java compiler is ${JAVAC_PATH}" >&5
8116
$as_echo "$as_me: Java compiler is ${JAVAC_PATH}" >&6;}
8119
JAVA_ENCODING="UTF-8"
8120
case "${JAVAC_NAME}"
8122
javac) JAVAC_OPTIONS="-encoding ${JAVA_ENCODING}";;
8123
gcj) JAVAC_OPTIONS="-C --encoding=${JAVA_ENCODING}";;
8124
*) JAVAC_OPTIONS="";;
8126
JAVAC="${JAVAC_PATH} ${JAVAC_OPTIONS}"
8129
JAVA_BIN=`$as_dirname -- "${JAVAC_PATH}" ||
8130
$as_expr X"${JAVAC_PATH}" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8131
X"${JAVAC_PATH}" : 'X\(//\)[^/]' \| \
8132
X"${JAVAC_PATH}" : 'X\(//\)$' \| \
8133
X"${JAVAC_PATH}" : 'X\(/\)' \| . 2>/dev/null ||
8134
$as_echo X"${JAVAC_PATH}" |
8135
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8152
JAVA_ROOT=`$as_dirname -- "${JAVA_BIN}" ||
8153
$as_expr X"${JAVA_BIN}" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8154
X"${JAVA_BIN}" : 'X\(//\)[^/]' \| \
8155
X"${JAVA_BIN}" : 'X\(//\)$' \| \
8156
X"${JAVA_BIN}" : 'X\(/\)' \| . 2>/dev/null ||
8157
$as_echo X"${JAVA_BIN}" |
8158
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8176
for ac_prog in javadoc gjdoc
8178
# Extract the first word of "$ac_prog", so it can be a program name with args.
8179
set dummy $ac_prog; ac_word=$2
8180
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8181
$as_echo_n "checking for $ac_word... " >&6; }
8182
if test "${ac_cv_prog_JAVADOC_NAME+set}" = set; then
8183
$as_echo_n "(cached) " >&6
8185
if test -n "$JAVADOC_NAME"; then
8186
ac_cv_prog_JAVADOC_NAME="$JAVADOC_NAME" # Let the user override the test.
8188
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189
for as_dir in "${JAVA_BIN}"
8192
test -z "$as_dir" && as_dir=.
8193
for ac_exec_ext in '' $ac_executable_extensions; do
8194
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8195
ac_cv_prog_JAVADOC_NAME="$ac_prog"
8196
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8205
JAVADOC_NAME=$ac_cv_prog_JAVADOC_NAME
8206
if test -n "$JAVADOC_NAME"; then
8207
{ $as_echo "$as_me:$LINENO: result: $JAVADOC_NAME" >&5
8208
$as_echo "$JAVADOC_NAME" >&6; }
8210
{ $as_echo "$as_me:$LINENO: result: no" >&5
8211
$as_echo "no" >&6; }
8215
test -n "$JAVADOC_NAME" && break
8218
if test -n "${JAVADOC_NAME}"
8220
JAVADOC_PATH="${JAVA_BIN}/${JAVADOC_NAME}"
8224
JAVADOC="${JAVADOC_PATH} -encoding ${JAVA_ENCODING}"
8227
for ac_prog in jar gjar
8229
# Extract the first word of "$ac_prog", so it can be a program name with args.
8230
set dummy $ac_prog; ac_word=$2
8231
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8232
$as_echo_n "checking for $ac_word... " >&6; }
8233
if test "${ac_cv_prog_JAR_NAME+set}" = set; then
8234
$as_echo_n "(cached) " >&6
8236
if test -n "$JAR_NAME"; then
8237
ac_cv_prog_JAR_NAME="$JAR_NAME" # Let the user override the test.
8239
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240
for as_dir in "${JAVA_BIN}"
8243
test -z "$as_dir" && as_dir=.
8244
for ac_exec_ext in '' $ac_executable_extensions; do
8245
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8246
ac_cv_prog_JAR_NAME="$ac_prog"
8247
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8256
JAR_NAME=$ac_cv_prog_JAR_NAME
8257
if test -n "$JAR_NAME"; then
8258
{ $as_echo "$as_me:$LINENO: result: $JAR_NAME" >&5
8259
$as_echo "$JAR_NAME" >&6; }
8261
{ $as_echo "$as_me:$LINENO: result: no" >&5
8262
$as_echo "no" >&6; }
8266
test -n "$JAR_NAME" && break
8268
test -n "$JAR_NAME" || JAR_NAME="JAR_NOT_FOUND_BY_CONFIGURE"
8270
JAR="${JAVA_BIN}/${JAR_NAME}"
8273
for directory in /usr/share/java
8275
test -d "${directory}" && {
8276
JAVA_JAR_DIR="${directory}"
8281
if test -n "${JAVA_JAR_DIR}"
8284
{ $as_echo "$as_me:$LINENO: Java jar installation directory is ${JAVA_JAR_DIR}" >&5
8285
$as_echo "$as_me: Java jar installation directory is ${JAVA_JAR_DIR}" >&6;}
8288
{ $as_echo "$as_me:$LINENO: WARNING: no commonly used jar installation directory" >&5
8289
$as_echo "$as_me: WARNING: no commonly used jar installation directory" >&2;}
8296
JAVA_JNI_INC="${JAVA_ROOT}/include"
8297
JAVA_JNI_HDR="jni.h"
8299
as_ac_Header=`$as_echo "ac_cv_header_${JAVA_JNI_HDR}" | $as_tr_sh`
8300
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8301
{ $as_echo "$as_me:$LINENO: checking for ${JAVA_JNI_HDR}" >&5
8302
$as_echo_n "checking for ${JAVA_JNI_HDR}... " >&6; }
8303
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8304
$as_echo_n "(cached) " >&6
8306
ac_res=`eval 'as_val=${'$as_ac_Header'}
8307
$as_echo "$as_val"'`
8308
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8309
$as_echo "$ac_res" >&6; }
8311
# Is the header compilable?
8312
{ $as_echo "$as_me:$LINENO: checking ${JAVA_JNI_HDR} usability" >&5
8313
$as_echo_n "checking ${JAVA_JNI_HDR} usability... " >&6; }
8314
cat >conftest.$ac_ext <<_ACEOF
8317
cat confdefs.h >>conftest.$ac_ext
8318
cat >>conftest.$ac_ext <<_ACEOF
8319
/* end confdefs.h. */
8320
$ac_includes_default
8321
#include <${JAVA_JNI_HDR}>
8323
rm -f conftest.$ac_objext
8324
if { (ac_try="$ac_compile"
8326
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327
*) ac_try_echo=$ac_try;;
8329
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8330
$as_echo "$ac_try_echo") >&5
8331
(eval "$ac_compile") 2>conftest.er1
8333
grep -v '^ *+' conftest.er1 >conftest.err
8335
cat conftest.err >&5
8336
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337
(exit $ac_status); } && {
8338
test -z "$ac_c_werror_flag" ||
8339
test ! -s conftest.err
8340
} && test -s conftest.$ac_objext; then
8341
ac_header_compiler=yes
8343
$as_echo "$as_me: failed program was:" >&5
8344
sed 's/^/| /' conftest.$ac_ext >&5
8346
ac_header_compiler=no
8349
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8350
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8351
$as_echo "$ac_header_compiler" >&6; }
8353
# Is the header present?
8354
{ $as_echo "$as_me:$LINENO: checking ${JAVA_JNI_HDR} presence" >&5
8355
$as_echo_n "checking ${JAVA_JNI_HDR} presence... " >&6; }
8356
cat >conftest.$ac_ext <<_ACEOF
8359
cat confdefs.h >>conftest.$ac_ext
8360
cat >>conftest.$ac_ext <<_ACEOF
8361
/* end confdefs.h. */
8362
#include <${JAVA_JNI_HDR}>
8364
if { (ac_try="$ac_cpp conftest.$ac_ext"
8366
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367
*) ac_try_echo=$ac_try;;
8369
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8370
$as_echo "$ac_try_echo") >&5
8371
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8373
grep -v '^ *+' conftest.er1 >conftest.err
8375
cat conftest.err >&5
8376
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377
(exit $ac_status); } >/dev/null && {
8378
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8379
test ! -s conftest.err
8381
ac_header_preproc=yes
8383
$as_echo "$as_me: failed program was:" >&5
8384
sed 's/^/| /' conftest.$ac_ext >&5
8386
ac_header_preproc=no
8389
rm -f conftest.err conftest.$ac_ext
8390
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8391
$as_echo "$ac_header_preproc" >&6; }
8393
# So? What about this header?
8394
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8396
{ $as_echo "$as_me:$LINENO: WARNING: ${JAVA_JNI_HDR}: accepted by the compiler, rejected by the preprocessor!" >&5
8397
$as_echo "$as_me: WARNING: ${JAVA_JNI_HDR}: accepted by the compiler, rejected by the preprocessor!" >&2;}
8398
{ $as_echo "$as_me:$LINENO: WARNING: ${JAVA_JNI_HDR}: proceeding with the compiler's result" >&5
8399
$as_echo "$as_me: WARNING: ${JAVA_JNI_HDR}: proceeding with the compiler's result" >&2;}
8400
ac_header_preproc=yes
8403
{ $as_echo "$as_me:$LINENO: WARNING: ${JAVA_JNI_HDR}: present but cannot be compiled" >&5
8404
$as_echo "$as_me: WARNING: ${JAVA_JNI_HDR}: present but cannot be compiled" >&2;}
8405
{ $as_echo "$as_me:$LINENO: WARNING: ${JAVA_JNI_HDR}: check for missing prerequisite headers?" >&5
8406
$as_echo "$as_me: WARNING: ${JAVA_JNI_HDR}: check for missing prerequisite headers?" >&2;}
8407
{ $as_echo "$as_me:$LINENO: WARNING: ${JAVA_JNI_HDR}: see the Autoconf documentation" >&5
8408
$as_echo "$as_me: WARNING: ${JAVA_JNI_HDR}: see the Autoconf documentation" >&2;}
8409
{ $as_echo "$as_me:$LINENO: WARNING: ${JAVA_JNI_HDR}: section \"Present But Cannot Be Compiled\"" >&5
8410
$as_echo "$as_me: WARNING: ${JAVA_JNI_HDR}: section \"Present But Cannot Be Compiled\"" >&2;}
8411
{ $as_echo "$as_me:$LINENO: WARNING: ${JAVA_JNI_HDR}: proceeding with the preprocessor's result" >&5
8412
$as_echo "$as_me: WARNING: ${JAVA_JNI_HDR}: proceeding with the preprocessor's result" >&2;}
8413
{ $as_echo "$as_me:$LINENO: WARNING: ${JAVA_JNI_HDR}: in the future, the compiler will take precedence" >&5
8414
$as_echo "$as_me: WARNING: ${JAVA_JNI_HDR}: in the future, the compiler will take precedence" >&2;}
8416
## --------------------------------------- ##
8417
## Report this to http://mielke.cc/brltty/ ##
8418
## --------------------------------------- ##
8420
) | sed "s/^/$as_me: WARNING: /" >&2
8423
{ $as_echo "$as_me:$LINENO: checking for ${JAVA_JNI_HDR}" >&5
8424
$as_echo_n "checking for ${JAVA_JNI_HDR}... " >&6; }
8425
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8426
$as_echo_n "(cached) " >&6
8428
eval "$as_ac_Header=\$ac_header_preproc"
8430
ac_res=`eval 'as_val=${'$as_ac_Header'}
8431
$as_echo "$as_val"'`
8432
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8433
$as_echo "$ac_res" >&6; }
8436
as_val=`eval 'as_val=${'$as_ac_Header'}
8437
$as_echo "$as_val"'`
8438
if test "x$as_val" = x""yes; then
8441
as_ac_File=`$as_echo "ac_cv_file_"${JAVA_JNI_INC}/${JAVA_JNI_HDR}"" | $as_tr_sh`
8442
{ $as_echo "$as_me:$LINENO: checking for \"${JAVA_JNI_INC}/${JAVA_JNI_HDR}\"" >&5
8443
$as_echo_n "checking for \"${JAVA_JNI_INC}/${JAVA_JNI_HDR}\"... " >&6; }
8444
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
8445
$as_echo_n "(cached) " >&6
8447
test "$cross_compiling" = yes &&
8448
{ { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
8449
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
8450
{ (exit 1); exit 1; }; }
8451
if test -r ""${JAVA_JNI_INC}/${JAVA_JNI_HDR}""; then
8452
eval "$as_ac_File=yes"
8454
eval "$as_ac_File=no"
8457
ac_res=`eval 'as_val=${'$as_ac_File'}
8458
$as_echo "$as_val"'`
8459
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8460
$as_echo "$ac_res" >&6; }
8461
as_val=`eval 'as_val=${'$as_ac_File'}
8462
$as_echo "$as_val"'`
8463
if test "x$as_val" = x""yes; then
8464
JAVA_JNI_FLAGS="-I${JAVA_JNI_INC}"
8476
for directory in /usr/lib/java /usr/lib/jni
8478
test -d "${directory}" && {
8479
JAVA_JNI_DIR="${directory}"
8484
if test -n "${JAVA_JNI_DIR}"
8487
{ $as_echo "$as_me:$LINENO: Java jni installation directory is ${JAVA_JNI_DIR}" >&5
8488
$as_echo "$as_me: Java jni installation directory is ${JAVA_JNI_DIR}" >&6;}
8491
{ $as_echo "$as_me:$LINENO: WARNING: no commonly used jni installation directory" >&5
8492
$as_echo "$as_me: WARNING: no commonly used jni installation directory" >&2;}
8499
{ $as_echo "$as_me:$LINENO: WARNING: Java compiler not found" >&5
8500
$as_echo "$as_me: WARNING: Java compiler not found" >&2;}
8507
api_bindings="${api_bindings} Java"
8509
{ $as_echo "$as_me:$LINENO: WARNING: Java BrlAPI bindings not included" >&5
8510
$as_echo "$as_me: WARNING: Java BrlAPI bindings not included" >&2;}
8515
{ { $as_echo "$as_me:$LINENO: error: invalid selection: --enable-java-bindings=${enableval}" >&5
8516
$as_echo "$as_me: error: invalid selection: --enable-java-bindings=${enableval}" >&2;}
8517
{ (exit 1); exit 1; }; }
8520
# Check whether --enable-lisp-bindings was given.
8521
if test "${enable_lisp_bindings+set}" = set; then
8522
enableval=$enable_lisp_bindings;
8528
brltty_enabled_lisp_bindings="${enableval}"
8529
brltty_summary_lines="${brltty_summary_lines}
8530
lisp-bindings: ${brltty_enabled_lisp_bindings}"
8532
if test "${enableval}" = "no"
8536
if test "${enableval}" = "yes"
8546
###############################################################################
8547
# libbrlapi - A library providing access to braille terminals for applications.
8549
# Copyright (C) 2006-2012 by Dave Mielke <dave@mielke.cc>
8551
# libbrlapi comes with ABSOLUTELY NO WARRANTY.
8553
# This is free software, placed under the terms of the
8554
# GNU Lesser General Public License, as published by the Free Software
8555
# Foundation; either version 2.1 of the License, or (at your option) any
8556
# later version. Please see the file LICENSE-LGPL for details.
8558
# Web Page: http://mielke.cc/brltty/
8560
# This software is maintained by Dave Mielke <dave@mielke.cc>.
8561
###############################################################################
8570
api_bindings="${api_bindings} Lisp"
8572
{ $as_echo "$as_me:$LINENO: WARNING: Lisp BrlAPI bindings not included" >&5
8573
$as_echo "$as_me: WARNING: Lisp BrlAPI bindings not included" >&2;}
8578
{ { $as_echo "$as_me:$LINENO: error: invalid selection: --enable-lisp-bindings=${enableval}" >&5
8579
$as_echo "$as_me: error: invalid selection: --enable-lisp-bindings=${enableval}" >&2;}
8580
{ (exit 1); exit 1; }; }
8583
# Check whether --enable-ocaml-bindings was given.
8584
if test "${enable_ocaml_bindings+set}" = set; then
8585
enableval=$enable_ocaml_bindings;
8591
brltty_enabled_ocaml_bindings="${enableval}"
8592
brltty_summary_lines="${brltty_summary_lines}
8593
ocaml-bindings: ${brltty_enabled_ocaml_bindings}"
7840
8595
if test "${enableval}" = "no"
8254
api_bindings="${api_bindings} Caml"
8256
{ $as_echo "$as_me:$LINENO: WARNING: Caml BrlAPI bindings not included" >&5
8257
$as_echo "$as_me: WARNING: Caml BrlAPI bindings not included" >&2;}
8262
{ { $as_echo "$as_me:$LINENO: error: invalid selection: --enable-caml-bindings=${enableval}" >&5
8263
$as_echo "$as_me: error: invalid selection: --enable-caml-bindings=${enableval}" >&2;}
8264
{ (exit 1); exit 1; }; }
8267
# Check whether --enable-java-bindings was given.
8268
if test "${enable_java_bindings+set}" = set; then
8269
enableval=$enable_java_bindings;
8275
brltty_enabled_java_bindings="${enableval}"
8276
brltty_summary_lines="${brltty_summary_lines}
8277
java-bindings: ${brltty_enabled_java_bindings}"
8279
if test "${enableval}" = "no"
8283
if test "${enableval}" = "yes"
8293
###############################################################################
8294
# libbrlapi - A library providing access to braille terminals for applications.
8296
# Copyright (C) 2006-2011 by
8297
# Samuel Thibault <Samuel.Thibault@ens-lyon.org>
8298
# Sébastien Hinderer <Sebastien.Hinderer@ens-lyon.org>
8300
# libbrlapi comes with ABSOLUTELY NO WARRANTY.
8302
# This is free software, placed under the terms of the
8303
# GNU Lesser General Public License, as published by the Free Software
8304
# Foundation; either version 2.1 of the License, or (at your option) any
8305
# later version. Please see the file LICENSE-LGPL for details.
8307
# Web Page: http://mielke.cc/brltty/
8309
# This software is maintained by Dave Mielke <dave@mielke.cc>.
8310
###############################################################################
8318
if test -n "${JAVA_HOME}"
8320
# Extract the first word of "javac", so it can be a program name with args.
8321
set dummy javac; ac_word=$2
8322
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8323
$as_echo_n "checking for $ac_word... " >&6; }
8324
if test "${ac_cv_path_JAVAC_PATH+set}" = set; then
8325
$as_echo_n "(cached) " >&6
8329
ac_cv_path_JAVAC_PATH="$JAVAC_PATH" # Let the user override the test with a path.
8332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333
for as_dir in "${JAVA_HOME}/bin"
8336
test -z "$as_dir" && as_dir=.
8337
for ac_exec_ext in '' $ac_executable_extensions; do
8338
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8339
ac_cv_path_JAVAC_PATH="$as_dir/$ac_word$ac_exec_ext"
8340
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8350
JAVAC_PATH=$ac_cv_path_JAVAC_PATH
8351
if test -n "$JAVAC_PATH"; then
8352
{ $as_echo "$as_me:$LINENO: result: $JAVAC_PATH" >&5
8353
$as_echo "$JAVAC_PATH" >&6; }
8355
{ $as_echo "$as_me:$LINENO: result: no" >&5
8356
$as_echo "no" >&6; }
8360
if test -n "${JAVAC_PATH}"
8365
# Extract the first word of "javac", so it can be a program name with args.
8366
set dummy javac; ac_word=$2
8367
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8368
$as_echo_n "checking for $ac_word... " >&6; }
8369
if test "${ac_cv_path_JAVAC_PATH+set}" = set; then
8370
$as_echo_n "(cached) " >&6
8374
ac_cv_path_JAVAC_PATH="$JAVAC_PATH" # Let the user override the test with a path.
8377
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381
test -z "$as_dir" && as_dir=.
8382
for ac_exec_ext in '' $ac_executable_extensions; do
8383
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8384
ac_cv_path_JAVAC_PATH="$as_dir/$ac_word$ac_exec_ext"
8385
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8395
JAVAC_PATH=$ac_cv_path_JAVAC_PATH
8396
if test -n "$JAVAC_PATH"; then
8397
{ $as_echo "$as_me:$LINENO: result: $JAVAC_PATH" >&5
8398
$as_echo "$JAVAC_PATH" >&6; }
8400
{ $as_echo "$as_me:$LINENO: result: no" >&5
8401
$as_echo "no" >&6; }
8405
if test -n "${JAVAC_PATH}"
8409
# Extract the first word of "javac", so it can be a program name with args.
8410
set dummy javac; ac_word=$2
8411
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8412
$as_echo_n "checking for $ac_word... " >&6; }
8413
if test "${ac_cv_path_JAVAC_PATH+set}" = set; then
8414
$as_echo_n "(cached) " >&6
8418
ac_cv_path_JAVAC_PATH="$JAVAC_PATH" # Let the user override the test with a path.
8421
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422
for as_dir in /usr/java/bin /usr/java/jdk*/bin
8425
test -z "$as_dir" && as_dir=.
8426
for ac_exec_ext in '' $ac_executable_extensions; do
8427
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8428
ac_cv_path_JAVAC_PATH="$as_dir/$ac_word$ac_exec_ext"
8429
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8439
JAVAC_PATH=$ac_cv_path_JAVAC_PATH
8440
if test -n "$JAVAC_PATH"; then
8441
{ $as_echo "$as_me:$LINENO: result: $JAVAC_PATH" >&5
8442
$as_echo "$JAVAC_PATH" >&6; }
8444
{ $as_echo "$as_me:$LINENO: result: no" >&5
8445
$as_echo "no" >&6; }
8449
if test -n "${JAVAC_PATH}"
8453
# Extract the first word of "gcj", so it can be a program name with args.
8454
set dummy gcj; ac_word=$2
8455
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8456
$as_echo_n "checking for $ac_word... " >&6; }
8457
if test "${ac_cv_path_JAVAC_PATH+set}" = set; then
8458
$as_echo_n "(cached) " >&6
8462
ac_cv_path_JAVAC_PATH="$JAVAC_PATH" # Let the user override the test with a path.
8465
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469
test -z "$as_dir" && as_dir=.
8470
for ac_exec_ext in '' $ac_executable_extensions; do
8471
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8472
ac_cv_path_JAVAC_PATH="$as_dir/$ac_word$ac_exec_ext"
8473
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8483
JAVAC_PATH=$ac_cv_path_JAVAC_PATH
8484
if test -n "$JAVAC_PATH"; then
8485
{ $as_echo "$as_me:$LINENO: result: $JAVAC_PATH" >&5
8486
$as_echo "$JAVAC_PATH" >&6; }
8488
{ $as_echo "$as_me:$LINENO: result: no" >&5
8489
$as_echo "no" >&6; }
8493
if test -n "${JAVAC_PATH}"
8504
if test -n "${JAVAC_PATH}"
8506
{ $as_echo "$as_me:$LINENO: Java compiler is ${JAVAC_PATH}" >&5
8507
$as_echo "$as_me: Java compiler is ${JAVAC_PATH}" >&6;}
8510
JAVA_ENCODING="UTF-8"
8511
case "${JAVAC_NAME}"
8513
javac) JAVAC_OPTIONS="-encoding ${JAVA_ENCODING}";;
8514
gcj) JAVAC_OPTIONS="-C --encoding=${JAVA_ENCODING}";;
8515
*) JAVAC_OPTIONS="";;
8517
JAVAC="${JAVAC_PATH} ${JAVAC_OPTIONS}"
8520
JAVA_BIN=`$as_dirname -- "${JAVAC_PATH}" ||
8521
$as_expr X"${JAVAC_PATH}" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8522
X"${JAVAC_PATH}" : 'X\(//\)[^/]' \| \
8523
X"${JAVAC_PATH}" : 'X\(//\)$' \| \
8524
X"${JAVAC_PATH}" : 'X\(/\)' \| . 2>/dev/null ||
8525
$as_echo X"${JAVAC_PATH}" |
8526
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8543
JAVA_ROOT=`$as_dirname -- "${JAVA_BIN}" ||
8544
$as_expr X"${JAVA_BIN}" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8545
X"${JAVA_BIN}" : 'X\(//\)[^/]' \| \
8546
X"${JAVA_BIN}" : 'X\(//\)$' \| \
8547
X"${JAVA_BIN}" : 'X\(/\)' \| . 2>/dev/null ||
8548
$as_echo X"${JAVA_BIN}" |
8549
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8567
for ac_prog in javadoc gjdoc
8569
# Extract the first word of "$ac_prog", so it can be a program name with args.
8570
set dummy $ac_prog; ac_word=$2
8571
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8572
$as_echo_n "checking for $ac_word... " >&6; }
8573
if test "${ac_cv_prog_JAVADOC_NAME+set}" = set; then
8574
$as_echo_n "(cached) " >&6
8576
if test -n "$JAVADOC_NAME"; then
8577
ac_cv_prog_JAVADOC_NAME="$JAVADOC_NAME" # Let the user override the test.
8579
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580
for as_dir in "${JAVA_BIN}"
8583
test -z "$as_dir" && as_dir=.
8584
for ac_exec_ext in '' $ac_executable_extensions; do
8585
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8586
ac_cv_prog_JAVADOC_NAME="$ac_prog"
8587
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8596
JAVADOC_NAME=$ac_cv_prog_JAVADOC_NAME
8597
if test -n "$JAVADOC_NAME"; then
8598
{ $as_echo "$as_me:$LINENO: result: $JAVADOC_NAME" >&5
8599
$as_echo "$JAVADOC_NAME" >&6; }
8601
{ $as_echo "$as_me:$LINENO: result: no" >&5
8602
$as_echo "no" >&6; }
8606
test -n "$JAVADOC_NAME" && break
8609
if test -n "${JAVADOC_NAME}"
8611
JAVADOC_PATH="${JAVA_BIN}/${JAVADOC_NAME}"
8615
JAVADOC="${JAVADOC_PATH} -encoding ${JAVA_ENCODING}"
8618
for ac_prog in jar gjar
8620
# Extract the first word of "$ac_prog", so it can be a program name with args.
8621
set dummy $ac_prog; ac_word=$2
8622
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8623
$as_echo_n "checking for $ac_word... " >&6; }
8624
if test "${ac_cv_prog_JAR_NAME+set}" = set; then
8625
$as_echo_n "(cached) " >&6
8627
if test -n "$JAR_NAME"; then
8628
ac_cv_prog_JAR_NAME="$JAR_NAME" # Let the user override the test.
8630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631
for as_dir in "${JAVA_BIN}"
8634
test -z "$as_dir" && as_dir=.
8635
for ac_exec_ext in '' $ac_executable_extensions; do
8636
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8637
ac_cv_prog_JAR_NAME="$ac_prog"
8638
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8647
JAR_NAME=$ac_cv_prog_JAR_NAME
8648
if test -n "$JAR_NAME"; then
8649
{ $as_echo "$as_me:$LINENO: result: $JAR_NAME" >&5
8650
$as_echo "$JAR_NAME" >&6; }
8652
{ $as_echo "$as_me:$LINENO: result: no" >&5
8653
$as_echo "no" >&6; }
8657
test -n "$JAR_NAME" && break
8659
test -n "$JAR_NAME" || JAR_NAME="JAR_NOT_FOUND_BY_CONFIGURE"
8661
JAR="${JAVA_BIN}/${JAR_NAME}"
8664
for directory in /usr/share/java
8666
test -d "${directory}" && {
8667
JAVA_JAR_DIR="${directory}"
8672
if test -n "${JAVA_JAR_DIR}"
8675
{ $as_echo "$as_me:$LINENO: Java jar installation directory is ${JAVA_JAR_DIR}" >&5
8676
$as_echo "$as_me: Java jar installation directory is ${JAVA_JAR_DIR}" >&6;}
8679
{ $as_echo "$as_me:$LINENO: WARNING: no commonly used jar installation directory" >&5
8680
$as_echo "$as_me: WARNING: no commonly used jar installation directory" >&2;}
8687
JAVA_JNI_INC="${JAVA_ROOT}/include"
8688
JAVA_JNI_HDR="jni.h"
8690
as_ac_Header=`$as_echo "ac_cv_header_${JAVA_JNI_HDR}" | $as_tr_sh`
8691
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8692
{ $as_echo "$as_me:$LINENO: checking for ${JAVA_JNI_HDR}" >&5
8693
$as_echo_n "checking for ${JAVA_JNI_HDR}... " >&6; }
8694
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8695
$as_echo_n "(cached) " >&6
8697
ac_res=`eval 'as_val=${'$as_ac_Header'}
8698
$as_echo "$as_val"'`
8699
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8700
$as_echo "$ac_res" >&6; }
8702
# Is the header compilable?
8703
{ $as_echo "$as_me:$LINENO: checking ${JAVA_JNI_HDR} usability" >&5
8704
$as_echo_n "checking ${JAVA_JNI_HDR} usability... " >&6; }
8705
cat >conftest.$ac_ext <<_ACEOF
8708
cat confdefs.h >>conftest.$ac_ext
8709
cat >>conftest.$ac_ext <<_ACEOF
8710
/* end confdefs.h. */
8711
$ac_includes_default
8712
#include <${JAVA_JNI_HDR}>
8714
rm -f conftest.$ac_objext
8715
if { (ac_try="$ac_compile"
8717
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8718
*) ac_try_echo=$ac_try;;
8720
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8721
$as_echo "$ac_try_echo") >&5
8722
(eval "$ac_compile") 2>conftest.er1
8724
grep -v '^ *+' conftest.er1 >conftest.err
8726
cat conftest.err >&5
8727
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728
(exit $ac_status); } && {
8729
test -z "$ac_c_werror_flag" ||
8730
test ! -s conftest.err
8731
} && test -s conftest.$ac_objext; then
8732
ac_header_compiler=yes
8734
$as_echo "$as_me: failed program was:" >&5
8735
sed 's/^/| /' conftest.$ac_ext >&5
8737
ac_header_compiler=no
8740
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8742
$as_echo "$ac_header_compiler" >&6; }
8744
# Is the header present?
8745
{ $as_echo "$as_me:$LINENO: checking ${JAVA_JNI_HDR} presence" >&5
8746
$as_echo_n "checking ${JAVA_JNI_HDR} presence... " >&6; }
8747
cat >conftest.$ac_ext <<_ACEOF
8750
cat confdefs.h >>conftest.$ac_ext
8751
cat >>conftest.$ac_ext <<_ACEOF
8752
/* end confdefs.h. */
8753
#include <${JAVA_JNI_HDR}>
8755
if { (ac_try="$ac_cpp conftest.$ac_ext"
8757
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758
*) ac_try_echo=$ac_try;;
8760
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8761
$as_echo "$ac_try_echo") >&5
8762
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8764
grep -v '^ *+' conftest.er1 >conftest.err
8766
cat conftest.err >&5
8767
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768
(exit $ac_status); } >/dev/null && {
8769
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8770
test ! -s conftest.err
8772
ac_header_preproc=yes
8774
$as_echo "$as_me: failed program was:" >&5
8775
sed 's/^/| /' conftest.$ac_ext >&5
8777
ac_header_preproc=no
8780
rm -f conftest.err conftest.$ac_ext
8781
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8782
$as_echo "$ac_header_preproc" >&6; }
8784
# So? What about this header?
8785
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8787
{ $as_echo "$as_me:$LINENO: WARNING: ${JAVA_JNI_HDR}: accepted by the compiler, rejected by the preprocessor!" >&5
8788
$as_echo "$as_me: WARNING: ${JAVA_JNI_HDR}: accepted by the compiler, rejected by the preprocessor!" >&2;}
8789
{ $as_echo "$as_me:$LINENO: WARNING: ${JAVA_JNI_HDR}: proceeding with the compiler's result" >&5
8790
$as_echo "$as_me: WARNING: ${JAVA_JNI_HDR}: proceeding with the compiler's result" >&2;}
8791
ac_header_preproc=yes
8794
{ $as_echo "$as_me:$LINENO: WARNING: ${JAVA_JNI_HDR}: present but cannot be compiled" >&5
8795
$as_echo "$as_me: WARNING: ${JAVA_JNI_HDR}: present but cannot be compiled" >&2;}
8796
{ $as_echo "$as_me:$LINENO: WARNING: ${JAVA_JNI_HDR}: check for missing prerequisite headers?" >&5
8797
$as_echo "$as_me: WARNING: ${JAVA_JNI_HDR}: check for missing prerequisite headers?" >&2;}
8798
{ $as_echo "$as_me:$LINENO: WARNING: ${JAVA_JNI_HDR}: see the Autoconf documentation" >&5
8799
$as_echo "$as_me: WARNING: ${JAVA_JNI_HDR}: see the Autoconf documentation" >&2;}
8800
{ $as_echo "$as_me:$LINENO: WARNING: ${JAVA_JNI_HDR}: section \"Present But Cannot Be Compiled\"" >&5
8801
$as_echo "$as_me: WARNING: ${JAVA_JNI_HDR}: section \"Present But Cannot Be Compiled\"" >&2;}
8802
{ $as_echo "$as_me:$LINENO: WARNING: ${JAVA_JNI_HDR}: proceeding with the preprocessor's result" >&5
8803
$as_echo "$as_me: WARNING: ${JAVA_JNI_HDR}: proceeding with the preprocessor's result" >&2;}
8804
{ $as_echo "$as_me:$LINENO: WARNING: ${JAVA_JNI_HDR}: in the future, the compiler will take precedence" >&5
8805
$as_echo "$as_me: WARNING: ${JAVA_JNI_HDR}: in the future, the compiler will take precedence" >&2;}
8807
## --------------------------------------- ##
8808
## Report this to http://mielke.cc/brltty/ ##
8809
## --------------------------------------- ##
8811
) | sed "s/^/$as_me: WARNING: /" >&2
8814
{ $as_echo "$as_me:$LINENO: checking for ${JAVA_JNI_HDR}" >&5
8815
$as_echo_n "checking for ${JAVA_JNI_HDR}... " >&6; }
8816
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8817
$as_echo_n "(cached) " >&6
8819
eval "$as_ac_Header=\$ac_header_preproc"
8821
ac_res=`eval 'as_val=${'$as_ac_Header'}
8822
$as_echo "$as_val"'`
8823
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8824
$as_echo "$ac_res" >&6; }
8827
as_val=`eval 'as_val=${'$as_ac_Header'}
8828
$as_echo "$as_val"'`
8829
if test "x$as_val" = x""yes; then
8832
as_ac_File=`$as_echo "ac_cv_file_"${JAVA_JNI_INC}/${JAVA_JNI_HDR}"" | $as_tr_sh`
8833
{ $as_echo "$as_me:$LINENO: checking for \"${JAVA_JNI_INC}/${JAVA_JNI_HDR}\"" >&5
8834
$as_echo_n "checking for \"${JAVA_JNI_INC}/${JAVA_JNI_HDR}\"... " >&6; }
8835
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
8836
$as_echo_n "(cached) " >&6
8838
test "$cross_compiling" = yes &&
8839
{ { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
8840
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
8841
{ (exit 1); exit 1; }; }
8842
if test -r ""${JAVA_JNI_INC}/${JAVA_JNI_HDR}""; then
8843
eval "$as_ac_File=yes"
8845
eval "$as_ac_File=no"
8848
ac_res=`eval 'as_val=${'$as_ac_File'}
8849
$as_echo "$as_val"'`
8850
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8851
$as_echo "$ac_res" >&6; }
8852
as_val=`eval 'as_val=${'$as_ac_File'}
8853
$as_echo "$as_val"'`
8854
if test "x$as_val" = x""yes; then
8855
JAVA_JNI_FLAGS="-I${JAVA_JNI_INC}"
8867
for directory in /usr/lib/java /usr/lib/jni
8869
test -d "${directory}" && {
8870
JAVA_JNI_DIR="${directory}"
8875
if test -n "${JAVA_JNI_DIR}"
8878
{ $as_echo "$as_me:$LINENO: Java jni installation directory is ${JAVA_JNI_DIR}" >&5
8879
$as_echo "$as_me: Java jni installation directory is ${JAVA_JNI_DIR}" >&6;}
8882
{ $as_echo "$as_me:$LINENO: WARNING: no commonly used jni installation directory" >&5
8883
$as_echo "$as_me: WARNING: no commonly used jni installation directory" >&2;}
8890
{ $as_echo "$as_me:$LINENO: WARNING: Java compiler not found" >&5
8891
$as_echo "$as_me: WARNING: Java compiler not found" >&2;}
8898
api_bindings="${api_bindings} Java"
8900
{ $as_echo "$as_me:$LINENO: WARNING: Java BrlAPI bindings not included" >&5
8901
$as_echo "$as_me: WARNING: Java BrlAPI bindings not included" >&2;}
8906
{ { $as_echo "$as_me:$LINENO: error: invalid selection: --enable-java-bindings=${enableval}" >&5
8907
$as_echo "$as_me: error: invalid selection: --enable-java-bindings=${enableval}" >&2;}
8908
{ (exit 1); exit 1; }; }
8911
# Check whether --enable-lisp-bindings was given.
8912
if test "${enable_lisp_bindings+set}" = set; then
8913
enableval=$enable_lisp_bindings;
8919
brltty_enabled_lisp_bindings="${enableval}"
8920
brltty_summary_lines="${brltty_summary_lines}
8921
lisp-bindings: ${brltty_enabled_lisp_bindings}"
8923
if test "${enableval}" = "no"
8927
if test "${enableval}" = "yes"
8937
###############################################################################
8938
# libbrlapi - A library providing access to braille terminals for applications.
8940
# Copyright (C) 2006-2011 by Dave Mielke <dave@mielke.cc>
8942
# libbrlapi comes with ABSOLUTELY NO WARRANTY.
8944
# This is free software, placed under the terms of the
8945
# GNU Lesser General Public License, as published by the Free Software
8946
# Foundation; either version 2.1 of the License, or (at your option) any
8947
# later version. Please see the file LICENSE-LGPL for details.
8949
# Web Page: http://mielke.cc/brltty/
8951
# This software is maintained by Dave Mielke <dave@mielke.cc>.
8952
###############################################################################
8961
api_bindings="${api_bindings} Lisp"
8963
{ $as_echo "$as_me:$LINENO: WARNING: Lisp BrlAPI bindings not included" >&5
8964
$as_echo "$as_me: WARNING: Lisp BrlAPI bindings not included" >&2;}
8969
{ { $as_echo "$as_me:$LINENO: error: invalid selection: --enable-lisp-bindings=${enableval}" >&5
8970
$as_echo "$as_me: error: invalid selection: --enable-lisp-bindings=${enableval}" >&2;}
9009
api_bindings="${api_bindings} OCaml"
9011
{ $as_echo "$as_me:$LINENO: WARNING: OCaml BrlAPI bindings not included" >&5
9012
$as_echo "$as_me: WARNING: OCaml BrlAPI bindings not included" >&2;}
9017
{ { $as_echo "$as_me:$LINENO: error: invalid selection: --enable-ocaml-bindings=${enableval}" >&5
9018
$as_echo "$as_me: error: invalid selection: --enable-ocaml-bindings=${enableval}" >&2;}
8971
9019
{ (exit 1); exit 1; }; }
10916
for ac_header in alloca.h getopt.h glob.h regex.h syslog.h
10962
for ac_func in time gettimeofday nanosleep
10964
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10965
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10966
$as_echo_n "checking for $ac_func... " >&6; }
10967
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10968
$as_echo_n "(cached) " >&6
10970
cat >conftest.$ac_ext <<_ACEOF
10973
cat confdefs.h >>conftest.$ac_ext
10974
cat >>conftest.$ac_ext <<_ACEOF
10975
/* end confdefs.h. */
10976
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10977
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10978
#define $ac_func innocuous_$ac_func
10980
/* System header to define __stub macros and hopefully few prototypes,
10981
which can conflict with char $ac_func (); below.
10982
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10983
<limits.h> exists even on freestanding compilers. */
10986
# include <limits.h>
10988
# include <assert.h>
10993
/* Override any GCC internal prototype to avoid an error.
10994
Use char because int might match the return type of a GCC
10995
builtin and then its argument prototype would still apply. */
11000
/* The GNU C library defines this for functions which it implements
11001
to always fail with ENOSYS. Some functions are actually named
11002
something starting with __ and the normal name is an alias. */
11003
#if defined __stub_$ac_func || defined __stub___$ac_func
11010
return $ac_func ();
11015
rm -f conftest.$ac_objext conftest$ac_exeext
11016
if { (ac_try="$ac_link"
11017
case "(($ac_try" in
11018
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019
*) ac_try_echo=$ac_try;;
11021
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11022
$as_echo "$ac_try_echo") >&5
11023
(eval "$ac_link") 2>conftest.er1
11025
grep -v '^ *+' conftest.er1 >conftest.err
11027
cat conftest.err >&5
11028
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029
(exit $ac_status); } && {
11030
test -z "$ac_c_werror_flag" ||
11031
test ! -s conftest.err
11032
} && test -s conftest$ac_exeext && {
11033
test "$cross_compiling" = yes ||
11034
$as_test_x conftest$ac_exeext
11036
eval "$as_ac_var=yes"
11038
$as_echo "$as_me: failed program was:" >&5
11039
sed 's/^/| /' conftest.$ac_ext >&5
11041
eval "$as_ac_var=no"
11044
rm -rf conftest.dSYM
11045
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11046
conftest$ac_exeext conftest.$ac_ext
11048
ac_res=`eval 'as_val=${'$as_ac_var'}
11049
$as_echo "$as_val"'`
11050
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11051
$as_echo "$ac_res" >&6; }
11052
as_val=`eval 'as_val=${'$as_ac_var'}
11053
$as_echo "$as_val"'`
11054
if test "x$as_val" = x""yes; then
11055
cat >>confdefs.h <<_ACEOF
11056
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11063
{ $as_echo "$as_me:$LINENO: checking whether clock_gettime is declared" >&5
11064
$as_echo_n "checking whether clock_gettime is declared... " >&6; }
11065
if test "${ac_cv_have_decl_clock_gettime+set}" = set; then
11066
$as_echo_n "(cached) " >&6
11068
cat >conftest.$ac_ext <<_ACEOF
11071
cat confdefs.h >>conftest.$ac_ext
11072
cat >>conftest.$ac_ext <<_ACEOF
11073
/* end confdefs.h. */
11081
#ifndef clock_gettime
11082
(void) clock_gettime;
11089
rm -f conftest.$ac_objext
11090
if { (ac_try="$ac_compile"
11091
case "(($ac_try" in
11092
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093
*) ac_try_echo=$ac_try;;
11095
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11096
$as_echo "$ac_try_echo") >&5
11097
(eval "$ac_compile") 2>conftest.er1
11099
grep -v '^ *+' conftest.er1 >conftest.err
11101
cat conftest.err >&5
11102
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103
(exit $ac_status); } && {
11104
test -z "$ac_c_werror_flag" ||
11105
test ! -s conftest.err
11106
} && test -s conftest.$ac_objext; then
11107
ac_cv_have_decl_clock_gettime=yes
11109
$as_echo "$as_me: failed program was:" >&5
11110
sed 's/^/| /' conftest.$ac_ext >&5
11112
ac_cv_have_decl_clock_gettime=no
11115
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11117
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clock_gettime" >&5
11118
$as_echo "$ac_cv_have_decl_clock_gettime" >&6; }
11119
if test "x$ac_cv_have_decl_clock_gettime" = x""yes; then
11120
{ $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
11121
$as_echo_n "checking for library containing clock_gettime... " >&6; }
11122
if test "${ac_cv_search_clock_gettime+set}" = set; then
11123
$as_echo_n "(cached) " >&6
11125
ac_func_search_save_LIBS=$LIBS
11126
cat >conftest.$ac_ext <<_ACEOF
11129
cat confdefs.h >>conftest.$ac_ext
11130
cat >>conftest.$ac_ext <<_ACEOF
11131
/* end confdefs.h. */
11133
/* Override any GCC internal prototype to avoid an error.
11134
Use char because int might match the return type of a GCC
11135
builtin and then its argument prototype would still apply. */
11139
char clock_gettime ();
11143
return clock_gettime ();
11148
for ac_lib in '' rt; do
11149
if test -z "$ac_lib"; then
11150
ac_res="none required"
11153
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11155
rm -f conftest.$ac_objext conftest$ac_exeext
11156
if { (ac_try="$ac_link"
11157
case "(($ac_try" in
11158
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159
*) ac_try_echo=$ac_try;;
11161
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11162
$as_echo "$ac_try_echo") >&5
11163
(eval "$ac_link") 2>conftest.er1
11165
grep -v '^ *+' conftest.er1 >conftest.err
11167
cat conftest.err >&5
11168
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169
(exit $ac_status); } && {
11170
test -z "$ac_c_werror_flag" ||
11171
test ! -s conftest.err
11172
} && test -s conftest$ac_exeext && {
11173
test "$cross_compiling" = yes ||
11174
$as_test_x conftest$ac_exeext
11176
ac_cv_search_clock_gettime=$ac_res
11178
$as_echo "$as_me: failed program was:" >&5
11179
sed 's/^/| /' conftest.$ac_ext >&5
11184
rm -rf conftest.dSYM
11185
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11187
if test "${ac_cv_search_clock_gettime+set}" = set; then
11191
if test "${ac_cv_search_clock_gettime+set}" = set; then
11194
ac_cv_search_clock_gettime=no
11196
rm conftest.$ac_ext
11197
LIBS=$ac_func_search_save_LIBS
11199
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
11200
$as_echo "$ac_cv_search_clock_gettime" >&6; }
11201
ac_res=$ac_cv_search_clock_gettime
11202
if test "$ac_res" != no; then
11203
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11204
brltty_define=`echo "have_clock_gettime" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
11206
cat >>confdefs.h <<_ACEOF
11207
#define ${brltty_define} 1
11218
{ $as_echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
11219
$as_echo_n "checking whether localtime_r is declared... " >&6; }
11220
if test "${ac_cv_have_decl_localtime_r+set}" = set; then
11221
$as_echo_n "(cached) " >&6
11223
cat >conftest.$ac_ext <<_ACEOF
11226
cat confdefs.h >>conftest.$ac_ext
11227
cat >>conftest.$ac_ext <<_ACEOF
11228
/* end confdefs.h. */
11235
#ifndef localtime_r
11236
(void) localtime_r;
11243
rm -f conftest.$ac_objext
11244
if { (ac_try="$ac_compile"
11245
case "(($ac_try" in
11246
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247
*) ac_try_echo=$ac_try;;
11249
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11250
$as_echo "$ac_try_echo") >&5
11251
(eval "$ac_compile") 2>conftest.er1
11253
grep -v '^ *+' conftest.er1 >conftest.err
11255
cat conftest.err >&5
11256
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257
(exit $ac_status); } && {
11258
test -z "$ac_c_werror_flag" ||
11259
test ! -s conftest.err
11260
} && test -s conftest.$ac_objext; then
11261
ac_cv_have_decl_localtime_r=yes
11263
$as_echo "$as_me: failed program was:" >&5
11264
sed 's/^/| /' conftest.$ac_ext >&5
11266
ac_cv_have_decl_localtime_r=no
11269
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11271
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_localtime_r" >&5
11272
$as_echo "$ac_cv_have_decl_localtime_r" >&6; }
11273
if test "x$ac_cv_have_decl_localtime_r" = x""yes; then
11275
cat >>confdefs.h <<_ACEOF
11276
#define HAVE_DECL_LOCALTIME_R 1
11281
cat >>confdefs.h <<_ACEOF
11282
#define HAVE_DECL_LOCALTIME_R 0
11293
for ac_header in sys/poll.h sys/select.h sys/wait.h
11295
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11296
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11297
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11298
$as_echo_n "checking for $ac_header... " >&6; }
11299
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11300
$as_echo_n "(cached) " >&6
11302
ac_res=`eval 'as_val=${'$as_ac_Header'}
11303
$as_echo "$as_val"'`
11304
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11305
$as_echo "$ac_res" >&6; }
11307
# Is the header compilable?
11308
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11309
$as_echo_n "checking $ac_header usability... " >&6; }
11310
cat >conftest.$ac_ext <<_ACEOF
11313
cat confdefs.h >>conftest.$ac_ext
11314
cat >>conftest.$ac_ext <<_ACEOF
11315
/* end confdefs.h. */
11316
$ac_includes_default
11317
#include <$ac_header>
11319
rm -f conftest.$ac_objext
11320
if { (ac_try="$ac_compile"
11321
case "(($ac_try" in
11322
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11323
*) ac_try_echo=$ac_try;;
11325
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11326
$as_echo "$ac_try_echo") >&5
11327
(eval "$ac_compile") 2>conftest.er1
11329
grep -v '^ *+' conftest.er1 >conftest.err
11331
cat conftest.err >&5
11332
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333
(exit $ac_status); } && {
11334
test -z "$ac_c_werror_flag" ||
11335
test ! -s conftest.err
11336
} && test -s conftest.$ac_objext; then
11337
ac_header_compiler=yes
11339
$as_echo "$as_me: failed program was:" >&5
11340
sed 's/^/| /' conftest.$ac_ext >&5
11342
ac_header_compiler=no
11345
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11346
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11347
$as_echo "$ac_header_compiler" >&6; }
11349
# Is the header present?
11350
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11351
$as_echo_n "checking $ac_header presence... " >&6; }
11352
cat >conftest.$ac_ext <<_ACEOF
11355
cat confdefs.h >>conftest.$ac_ext
11356
cat >>conftest.$ac_ext <<_ACEOF
11357
/* end confdefs.h. */
11358
#include <$ac_header>
11360
if { (ac_try="$ac_cpp conftest.$ac_ext"
11361
case "(($ac_try" in
11362
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363
*) ac_try_echo=$ac_try;;
11365
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11366
$as_echo "$ac_try_echo") >&5
11367
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11369
grep -v '^ *+' conftest.er1 >conftest.err
11371
cat conftest.err >&5
11372
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373
(exit $ac_status); } >/dev/null && {
11374
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11375
test ! -s conftest.err
11377
ac_header_preproc=yes
11379
$as_echo "$as_me: failed program was:" >&5
11380
sed 's/^/| /' conftest.$ac_ext >&5
11382
ac_header_preproc=no
11385
rm -f conftest.err conftest.$ac_ext
11386
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11387
$as_echo "$ac_header_preproc" >&6; }
11389
# So? What about this header?
11390
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11392
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11393
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11394
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11395
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11396
ac_header_preproc=yes
11399
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11400
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11401
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11402
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11403
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11404
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11405
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11406
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11407
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11408
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11409
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11410
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11412
## --------------------------------------- ##
11413
## Report this to http://mielke.cc/brltty/ ##
11414
## --------------------------------------- ##
11416
) | sed "s/^/$as_me: WARNING: /" >&2
11419
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11420
$as_echo_n "checking for $ac_header... " >&6; }
11421
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11422
$as_echo_n "(cached) " >&6
11424
eval "$as_ac_Header=\$ac_header_preproc"
11426
ac_res=`eval 'as_val=${'$as_ac_Header'}
11427
$as_echo "$as_val"'`
11428
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11429
$as_echo "$ac_res" >&6; }
11432
as_val=`eval 'as_val=${'$as_ac_Header'}
11433
$as_echo "$as_val"'`
11434
if test "x$as_val" = x""yes; then
11435
cat >>confdefs.h <<_ACEOF
11436
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11444
for ac_func in select
11446
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11447
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11448
$as_echo_n "checking for $ac_func... " >&6; }
11449
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11450
$as_echo_n "(cached) " >&6
11452
cat >conftest.$ac_ext <<_ACEOF
11455
cat confdefs.h >>conftest.$ac_ext
11456
cat >>conftest.$ac_ext <<_ACEOF
11457
/* end confdefs.h. */
11458
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11459
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11460
#define $ac_func innocuous_$ac_func
11462
/* System header to define __stub macros and hopefully few prototypes,
11463
which can conflict with char $ac_func (); below.
11464
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11465
<limits.h> exists even on freestanding compilers. */
11468
# include <limits.h>
11470
# include <assert.h>
11475
/* Override any GCC internal prototype to avoid an error.
11476
Use char because int might match the return type of a GCC
11477
builtin and then its argument prototype would still apply. */
11482
/* The GNU C library defines this for functions which it implements
11483
to always fail with ENOSYS. Some functions are actually named
11484
something starting with __ and the normal name is an alias. */
11485
#if defined __stub_$ac_func || defined __stub___$ac_func
11492
return $ac_func ();
11497
rm -f conftest.$ac_objext conftest$ac_exeext
11498
if { (ac_try="$ac_link"
11499
case "(($ac_try" in
11500
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501
*) ac_try_echo=$ac_try;;
11503
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11504
$as_echo "$ac_try_echo") >&5
11505
(eval "$ac_link") 2>conftest.er1
11507
grep -v '^ *+' conftest.er1 >conftest.err
11509
cat conftest.err >&5
11510
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511
(exit $ac_status); } && {
11512
test -z "$ac_c_werror_flag" ||
11513
test ! -s conftest.err
11514
} && test -s conftest$ac_exeext && {
11515
test "$cross_compiling" = yes ||
11516
$as_test_x conftest$ac_exeext
11518
eval "$as_ac_var=yes"
11520
$as_echo "$as_me: failed program was:" >&5
11521
sed 's/^/| /' conftest.$ac_ext >&5
11523
eval "$as_ac_var=no"
11526
rm -rf conftest.dSYM
11527
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11528
conftest$ac_exeext conftest.$ac_ext
11530
ac_res=`eval 'as_val=${'$as_ac_var'}
11531
$as_echo "$as_val"'`
11532
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11533
$as_echo "$ac_res" >&6; }
11534
as_val=`eval 'as_val=${'$as_ac_var'}
11535
$as_echo "$as_val"'`
11536
if test "x$as_val" = x""yes; then
11537
cat >>confdefs.h <<_ACEOF
11538
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11546
for ac_header in signal.h
11548
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11549
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11550
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11551
$as_echo_n "checking for $ac_header... " >&6; }
11552
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11553
$as_echo_n "(cached) " >&6
11555
ac_res=`eval 'as_val=${'$as_ac_Header'}
11556
$as_echo "$as_val"'`
11557
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11558
$as_echo "$ac_res" >&6; }
11560
# Is the header compilable?
11561
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11562
$as_echo_n "checking $ac_header usability... " >&6; }
11563
cat >conftest.$ac_ext <<_ACEOF
11566
cat confdefs.h >>conftest.$ac_ext
11567
cat >>conftest.$ac_ext <<_ACEOF
11568
/* end confdefs.h. */
11569
$ac_includes_default
11570
#include <$ac_header>
11572
rm -f conftest.$ac_objext
11573
if { (ac_try="$ac_compile"
11574
case "(($ac_try" in
11575
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576
*) ac_try_echo=$ac_try;;
11578
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11579
$as_echo "$ac_try_echo") >&5
11580
(eval "$ac_compile") 2>conftest.er1
11582
grep -v '^ *+' conftest.er1 >conftest.err
11584
cat conftest.err >&5
11585
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586
(exit $ac_status); } && {
11587
test -z "$ac_c_werror_flag" ||
11588
test ! -s conftest.err
11589
} && test -s conftest.$ac_objext; then
11590
ac_header_compiler=yes
11592
$as_echo "$as_me: failed program was:" >&5
11593
sed 's/^/| /' conftest.$ac_ext >&5
11595
ac_header_compiler=no
11598
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11599
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11600
$as_echo "$ac_header_compiler" >&6; }
11602
# Is the header present?
11603
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11604
$as_echo_n "checking $ac_header presence... " >&6; }
11605
cat >conftest.$ac_ext <<_ACEOF
11608
cat confdefs.h >>conftest.$ac_ext
11609
cat >>conftest.$ac_ext <<_ACEOF
11610
/* end confdefs.h. */
11611
#include <$ac_header>
11613
if { (ac_try="$ac_cpp conftest.$ac_ext"
11614
case "(($ac_try" in
11615
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616
*) ac_try_echo=$ac_try;;
11618
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11619
$as_echo "$ac_try_echo") >&5
11620
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11622
grep -v '^ *+' conftest.er1 >conftest.err
11624
cat conftest.err >&5
11625
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626
(exit $ac_status); } >/dev/null && {
11627
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11628
test ! -s conftest.err
11630
ac_header_preproc=yes
11632
$as_echo "$as_me: failed program was:" >&5
11633
sed 's/^/| /' conftest.$ac_ext >&5
11635
ac_header_preproc=no
11638
rm -f conftest.err conftest.$ac_ext
11639
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11640
$as_echo "$ac_header_preproc" >&6; }
11642
# So? What about this header?
11643
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11645
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11646
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11647
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11648
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11649
ac_header_preproc=yes
11652
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11653
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11654
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11655
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11656
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11657
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11658
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11659
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11660
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11661
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11662
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11663
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11665
## --------------------------------------- ##
11666
## Report this to http://mielke.cc/brltty/ ##
11667
## --------------------------------------- ##
11669
) | sed "s/^/$as_me: WARNING: /" >&2
11672
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11673
$as_echo_n "checking for $ac_header... " >&6; }
11674
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11675
$as_echo_n "(cached) " >&6
11677
eval "$as_ac_Header=\$ac_header_preproc"
11679
ac_res=`eval 'as_val=${'$as_ac_Header'}
11680
$as_echo "$as_val"'`
11681
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11682
$as_echo "$ac_res" >&6; }
11685
as_val=`eval 'as_val=${'$as_ac_Header'}
11686
$as_echo "$as_val"'`
11687
if test "x$as_val" = x""yes; then
11688
cat >>confdefs.h <<_ACEOF
11689
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11697
for ac_func in sigaction
11699
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11700
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11701
$as_echo_n "checking for $ac_func... " >&6; }
11702
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11703
$as_echo_n "(cached) " >&6
11705
cat >conftest.$ac_ext <<_ACEOF
11708
cat confdefs.h >>conftest.$ac_ext
11709
cat >>conftest.$ac_ext <<_ACEOF
11710
/* end confdefs.h. */
11711
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11712
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11713
#define $ac_func innocuous_$ac_func
11715
/* System header to define __stub macros and hopefully few prototypes,
11716
which can conflict with char $ac_func (); below.
11717
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11718
<limits.h> exists even on freestanding compilers. */
11721
# include <limits.h>
11723
# include <assert.h>
11728
/* Override any GCC internal prototype to avoid an error.
11729
Use char because int might match the return type of a GCC
11730
builtin and then its argument prototype would still apply. */
11735
/* The GNU C library defines this for functions which it implements
11736
to always fail with ENOSYS. Some functions are actually named
11737
something starting with __ and the normal name is an alias. */
11738
#if defined __stub_$ac_func || defined __stub___$ac_func
11745
return $ac_func ();
11750
rm -f conftest.$ac_objext conftest$ac_exeext
11751
if { (ac_try="$ac_link"
11752
case "(($ac_try" in
11753
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754
*) ac_try_echo=$ac_try;;
11756
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11757
$as_echo "$ac_try_echo") >&5
11758
(eval "$ac_link") 2>conftest.er1
11760
grep -v '^ *+' conftest.er1 >conftest.err
11762
cat conftest.err >&5
11763
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764
(exit $ac_status); } && {
11765
test -z "$ac_c_werror_flag" ||
11766
test ! -s conftest.err
11767
} && test -s conftest$ac_exeext && {
11768
test "$cross_compiling" = yes ||
11769
$as_test_x conftest$ac_exeext
11771
eval "$as_ac_var=yes"
11773
$as_echo "$as_me: failed program was:" >&5
11774
sed 's/^/| /' conftest.$ac_ext >&5
11776
eval "$as_ac_var=no"
11779
rm -rf conftest.dSYM
11780
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11781
conftest$ac_exeext conftest.$ac_ext
11783
ac_res=`eval 'as_val=${'$as_ac_var'}
11784
$as_echo "$as_val"'`
11785
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11786
$as_echo "$ac_res" >&6; }
11787
as_val=`eval 'as_val=${'$as_ac_var'}
11788
$as_echo "$as_val"'`
11789
if test "x$as_val" = x""yes; then
11790
cat >>confdefs.h <<_ACEOF
11791
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11804
for ac_header in alloca.h getopt.h glob.h langinfo.h regex.h syslog.h
10918
11806
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10919
11807
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11679
for ac_header in mntent.h sys/mnttab.h
11681
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11682
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11683
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11684
$as_echo_n "checking for $ac_header... " >&6; }
11685
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11686
$as_echo_n "(cached) " >&6
11688
ac_res=`eval 'as_val=${'$as_ac_Header'}
11689
$as_echo "$as_val"'`
11690
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11691
$as_echo "$ac_res" >&6; }
11693
# Is the header compilable?
11694
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11695
$as_echo_n "checking $ac_header usability... " >&6; }
11696
cat >conftest.$ac_ext <<_ACEOF
11699
cat confdefs.h >>conftest.$ac_ext
11700
cat >>conftest.$ac_ext <<_ACEOF
11701
/* end confdefs.h. */
11702
$ac_includes_default
11703
#include <$ac_header>
11705
rm -f conftest.$ac_objext
11706
if { (ac_try="$ac_compile"
11707
case "(($ac_try" in
11708
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709
*) ac_try_echo=$ac_try;;
11711
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11712
$as_echo "$ac_try_echo") >&5
11713
(eval "$ac_compile") 2>conftest.er1
11715
grep -v '^ *+' conftest.er1 >conftest.err
11717
cat conftest.err >&5
11718
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719
(exit $ac_status); } && {
11720
test -z "$ac_c_werror_flag" ||
11721
test ! -s conftest.err
11722
} && test -s conftest.$ac_objext; then
11723
ac_header_compiler=yes
11725
$as_echo "$as_me: failed program was:" >&5
11726
sed 's/^/| /' conftest.$ac_ext >&5
11728
ac_header_compiler=no
11731
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11732
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11733
$as_echo "$ac_header_compiler" >&6; }
11735
# Is the header present?
11736
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11737
$as_echo_n "checking $ac_header presence... " >&6; }
11738
cat >conftest.$ac_ext <<_ACEOF
11741
cat confdefs.h >>conftest.$ac_ext
11742
cat >>conftest.$ac_ext <<_ACEOF
11743
/* end confdefs.h. */
11744
#include <$ac_header>
11746
if { (ac_try="$ac_cpp conftest.$ac_ext"
11747
case "(($ac_try" in
11748
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749
*) ac_try_echo=$ac_try;;
11751
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11752
$as_echo "$ac_try_echo") >&5
11753
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11755
grep -v '^ *+' conftest.er1 >conftest.err
11757
cat conftest.err >&5
11758
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759
(exit $ac_status); } >/dev/null && {
11760
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11761
test ! -s conftest.err
11763
ac_header_preproc=yes
11765
$as_echo "$as_me: failed program was:" >&5
11766
sed 's/^/| /' conftest.$ac_ext >&5
11768
ac_header_preproc=no
11771
rm -f conftest.err conftest.$ac_ext
11772
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11773
$as_echo "$ac_header_preproc" >&6; }
11775
# So? What about this header?
11776
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11778
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11779
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11780
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11781
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11782
ac_header_preproc=yes
11785
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11786
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11787
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11788
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11789
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11790
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11791
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11792
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11793
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11794
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11795
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11796
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11798
## --------------------------------------- ##
11799
## Report this to http://mielke.cc/brltty/ ##
11800
## --------------------------------------- ##
11802
) | sed "s/^/$as_me: WARNING: /" >&2
11805
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11806
$as_echo_n "checking for $ac_header... " >&6; }
11807
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11808
$as_echo_n "(cached) " >&6
11810
eval "$as_ac_Header=\$ac_header_preproc"
11812
ac_res=`eval 'as_val=${'$as_ac_Header'}
11813
$as_echo "$as_val"'`
11814
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11815
$as_echo "$ac_res" >&6; }
11818
as_val=`eval 'as_val=${'$as_ac_Header'}
11819
$as_echo "$as_val"'`
11820
if test "x$as_val" = x""yes; then
11821
cat >>confdefs.h <<_ACEOF
11822
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11830
for ac_func in addmntent
11832
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11833
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11834
$as_echo_n "checking for $ac_func... " >&6; }
11835
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11836
$as_echo_n "(cached) " >&6
11838
cat >conftest.$ac_ext <<_ACEOF
11841
cat confdefs.h >>conftest.$ac_ext
11842
cat >>conftest.$ac_ext <<_ACEOF
11843
/* end confdefs.h. */
11844
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11845
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11846
#define $ac_func innocuous_$ac_func
11848
/* System header to define __stub macros and hopefully few prototypes,
11849
which can conflict with char $ac_func (); below.
11850
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11851
<limits.h> exists even on freestanding compilers. */
11854
# include <limits.h>
11856
# include <assert.h>
11861
/* Override any GCC internal prototype to avoid an error.
11862
Use char because int might match the return type of a GCC
11863
builtin and then its argument prototype would still apply. */
11868
/* The GNU C library defines this for functions which it implements
11869
to always fail with ENOSYS. Some functions are actually named
11870
something starting with __ and the normal name is an alias. */
11871
#if defined __stub_$ac_func || defined __stub___$ac_func
11878
return $ac_func ();
11883
rm -f conftest.$ac_objext conftest$ac_exeext
11884
if { (ac_try="$ac_link"
11885
case "(($ac_try" in
11886
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887
*) ac_try_echo=$ac_try;;
11889
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11890
$as_echo "$ac_try_echo") >&5
11891
(eval "$ac_link") 2>conftest.er1
11893
grep -v '^ *+' conftest.er1 >conftest.err
11895
cat conftest.err >&5
11896
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897
(exit $ac_status); } && {
11898
test -z "$ac_c_werror_flag" ||
11899
test ! -s conftest.err
11900
} && test -s conftest$ac_exeext && {
11901
test "$cross_compiling" = yes ||
11902
$as_test_x conftest$ac_exeext
11904
eval "$as_ac_var=yes"
11906
$as_echo "$as_me: failed program was:" >&5
11907
sed 's/^/| /' conftest.$ac_ext >&5
11909
eval "$as_ac_var=no"
11912
rm -rf conftest.dSYM
11913
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11914
conftest$ac_exeext conftest.$ac_ext
11916
ac_res=`eval 'as_val=${'$as_ac_var'}
11917
$as_echo "$as_val"'`
11918
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11919
$as_echo "$ac_res" >&6; }
11920
as_val=`eval 'as_val=${'$as_ac_var'}
11921
$as_echo "$as_val"'`
11922
if test "x$as_val" = x""yes; then
11923
cat >>confdefs.h <<_ACEOF
11924
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11932
12413
for ac_header in linux/input.h
11934
12415
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16140
# Check whether --with-serial-package was given.
16141
if test "${with_serial_package+set}" = set; then
16142
withval=$with_serial_package; packages="${withval}"
16149
if test "${packages}" = "no"
16151
serial_package="none"
16152
elif test "${packages}" = "yes"
16158
serial_package="windows"
16161
serial_package="msdos"
16164
serial_package="grub"
16171
packages=`echo "${packages}" | sed -e 'y/,/ /'`
16174
test -z "${serial_package}" && {
16175
test -n "${packages}" && {
16176
for package in ${packages}
16178
pkg-config --exists "${package}" && {
16179
serial_package="${package}"
16180
serial_cflags=`pkg-config --cflags-only-I "${package}"`
16181
serial_libs=`pkg-config ${pkgconfig_flags_libs} "${package}"`
16188
if test "${ac_cv_header_termios_h+set}" = set; then
16189
{ $as_echo "$as_me:$LINENO: checking for termios.h" >&5
16190
$as_echo_n "checking for termios.h... " >&6; }
16191
if test "${ac_cv_header_termios_h+set}" = set; then
16192
$as_echo_n "(cached) " >&6
16194
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_termios_h" >&5
16195
$as_echo "$ac_cv_header_termios_h" >&6; }
16197
# Is the header compilable?
16198
{ $as_echo "$as_me:$LINENO: checking termios.h usability" >&5
16199
$as_echo_n "checking termios.h usability... " >&6; }
16200
cat >conftest.$ac_ext <<_ACEOF
16203
cat confdefs.h >>conftest.$ac_ext
16204
cat >>conftest.$ac_ext <<_ACEOF
16205
/* end confdefs.h. */
16206
$ac_includes_default
16207
#include <termios.h>
16209
rm -f conftest.$ac_objext
16210
if { (ac_try="$ac_compile"
16211
case "(($ac_try" in
16212
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213
*) ac_try_echo=$ac_try;;
16215
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16216
$as_echo "$ac_try_echo") >&5
16217
(eval "$ac_compile") 2>conftest.er1
16219
grep -v '^ *+' conftest.er1 >conftest.err
16221
cat conftest.err >&5
16222
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223
(exit $ac_status); } && {
16224
test -z "$ac_c_werror_flag" ||
16225
test ! -s conftest.err
16226
} && test -s conftest.$ac_objext; then
16227
ac_header_compiler=yes
16229
$as_echo "$as_me: failed program was:" >&5
16230
sed 's/^/| /' conftest.$ac_ext >&5
16232
ac_header_compiler=no
16235
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16237
$as_echo "$ac_header_compiler" >&6; }
16239
# Is the header present?
16240
{ $as_echo "$as_me:$LINENO: checking termios.h presence" >&5
16241
$as_echo_n "checking termios.h presence... " >&6; }
16242
cat >conftest.$ac_ext <<_ACEOF
16245
cat confdefs.h >>conftest.$ac_ext
16246
cat >>conftest.$ac_ext <<_ACEOF
16247
/* end confdefs.h. */
16248
#include <termios.h>
16250
if { (ac_try="$ac_cpp conftest.$ac_ext"
16251
case "(($ac_try" in
16252
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253
*) ac_try_echo=$ac_try;;
16255
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16256
$as_echo "$ac_try_echo") >&5
16257
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16259
grep -v '^ *+' conftest.er1 >conftest.err
16261
cat conftest.err >&5
16262
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263
(exit $ac_status); } >/dev/null && {
16264
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16265
test ! -s conftest.err
16267
ac_header_preproc=yes
16269
$as_echo "$as_me: failed program was:" >&5
16270
sed 's/^/| /' conftest.$ac_ext >&5
16272
ac_header_preproc=no
16275
rm -f conftest.err conftest.$ac_ext
16276
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16277
$as_echo "$ac_header_preproc" >&6; }
16279
# So? What about this header?
16280
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16282
{ $as_echo "$as_me:$LINENO: WARNING: termios.h: accepted by the compiler, rejected by the preprocessor!" >&5
16283
$as_echo "$as_me: WARNING: termios.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16284
{ $as_echo "$as_me:$LINENO: WARNING: termios.h: proceeding with the compiler's result" >&5
16285
$as_echo "$as_me: WARNING: termios.h: proceeding with the compiler's result" >&2;}
16286
ac_header_preproc=yes
16289
{ $as_echo "$as_me:$LINENO: WARNING: termios.h: present but cannot be compiled" >&5
16290
$as_echo "$as_me: WARNING: termios.h: present but cannot be compiled" >&2;}
16291
{ $as_echo "$as_me:$LINENO: WARNING: termios.h: check for missing prerequisite headers?" >&5
16292
$as_echo "$as_me: WARNING: termios.h: check for missing prerequisite headers?" >&2;}
16293
{ $as_echo "$as_me:$LINENO: WARNING: termios.h: see the Autoconf documentation" >&5
16294
$as_echo "$as_me: WARNING: termios.h: see the Autoconf documentation" >&2;}
16295
{ $as_echo "$as_me:$LINENO: WARNING: termios.h: section \"Present But Cannot Be Compiled\"" >&5
16296
$as_echo "$as_me: WARNING: termios.h: section \"Present But Cannot Be Compiled\"" >&2;}
16297
{ $as_echo "$as_me:$LINENO: WARNING: termios.h: proceeding with the preprocessor's result" >&5
16298
$as_echo "$as_me: WARNING: termios.h: proceeding with the preprocessor's result" >&2;}
16299
{ $as_echo "$as_me:$LINENO: WARNING: termios.h: in the future, the compiler will take precedence" >&5
16300
$as_echo "$as_me: WARNING: termios.h: in the future, the compiler will take precedence" >&2;}
16302
## --------------------------------------- ##
16303
## Report this to http://mielke.cc/brltty/ ##
16304
## --------------------------------------- ##
16306
) | sed "s/^/$as_me: WARNING: /" >&2
16309
{ $as_echo "$as_me:$LINENO: checking for termios.h" >&5
16310
$as_echo_n "checking for termios.h... " >&6; }
16311
if test "${ac_cv_header_termios_h+set}" = set; then
16312
$as_echo_n "(cached) " >&6
16314
ac_cv_header_termios_h=$ac_header_preproc
16316
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_termios_h" >&5
16317
$as_echo "$ac_cv_header_termios_h" >&6; }
16320
if test "x$ac_cv_header_termios_h" = x""yes; then
16321
serial_package="termios"
16323
for ac_func in tcdrain
16325
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16326
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16327
$as_echo_n "checking for $ac_func... " >&6; }
16328
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16329
$as_echo_n "(cached) " >&6
16331
cat >conftest.$ac_ext <<_ACEOF
16334
cat confdefs.h >>conftest.$ac_ext
16335
cat >>conftest.$ac_ext <<_ACEOF
16336
/* end confdefs.h. */
16337
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16338
For example, HP-UX 11i <limits.h> declares gettimeofday. */
16339
#define $ac_func innocuous_$ac_func
16341
/* System header to define __stub macros and hopefully few prototypes,
16342
which can conflict with char $ac_func (); below.
16343
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16344
<limits.h> exists even on freestanding compilers. */
16347
# include <limits.h>
16349
# include <assert.h>
16354
/* Override any GCC internal prototype to avoid an error.
16355
Use char because int might match the return type of a GCC
16356
builtin and then its argument prototype would still apply. */
16361
/* The GNU C library defines this for functions which it implements
16362
to always fail with ENOSYS. Some functions are actually named
16363
something starting with __ and the normal name is an alias. */
16364
#if defined __stub_$ac_func || defined __stub___$ac_func
16371
return $ac_func ();
16376
rm -f conftest.$ac_objext conftest$ac_exeext
16377
if { (ac_try="$ac_link"
16378
case "(($ac_try" in
16379
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380
*) ac_try_echo=$ac_try;;
16382
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16383
$as_echo "$ac_try_echo") >&5
16384
(eval "$ac_link") 2>conftest.er1
16386
grep -v '^ *+' conftest.er1 >conftest.err
16388
cat conftest.err >&5
16389
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390
(exit $ac_status); } && {
16391
test -z "$ac_c_werror_flag" ||
16392
test ! -s conftest.err
16393
} && test -s conftest$ac_exeext && {
16394
test "$cross_compiling" = yes ||
16395
$as_test_x conftest$ac_exeext
16397
eval "$as_ac_var=yes"
16399
$as_echo "$as_me: failed program was:" >&5
16400
sed 's/^/| /' conftest.$ac_ext >&5
16402
eval "$as_ac_var=no"
16405
rm -rf conftest.dSYM
16406
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16407
conftest$ac_exeext conftest.$ac_ext
16409
ac_res=`eval 'as_val=${'$as_ac_var'}
16410
$as_echo "$as_val"'`
16411
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16412
$as_echo "$ac_res" >&6; }
16413
as_val=`eval 'as_val=${'$as_ac_var'}
16414
$as_echo "$as_val"'`
16415
if test "x$as_val" = x""yes; then
16416
cat >>confdefs.h <<_ACEOF
16417
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16432
test -n "${serial_package}" && break
16435
{ $as_echo "$as_me:$LINENO: serial package not available: ${package}" >&5
16436
$as_echo "$as_me: serial package not available: ${package}" >&6;}
16441
test -z "${serial_package}" && {
16442
serial_package="none"
16443
{ $as_echo "$as_me:$LINENO: WARNING: serial support not available on this platform" >&5
16444
$as_echo "$as_me: WARNING: serial support not available on this platform" >&2;}
16451
cat >>confdefs.h <<_ACEOF
16452
#define SERIAL_PACKAGE ${serial_package}
16455
brltty_uc=`echo "use_serial_package_${serial_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
16456
cat >>confdefs.h <<_ACEOF
16457
#define ${brltty_uc} 1
16460
brltty_summary_lines="${brltty_summary_lines}
16461
serial-package: ${serial_package}"
15592
16463
usb_package=""
15593
16464
usb_cflags=""
17250
cat >>confdefs.h <<_ACEOF
17251
#define BLUETOOTH_PACKAGE ${bluetooth_package}
17254
brltty_uc=`echo "use_bluetooth_package_${bluetooth_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
17255
cat >>confdefs.h <<_ACEOF
17256
#define ${brltty_uc} 1
16365
17259
brltty_summary_lines="${brltty_summary_lines}
16366
17260
bluetooth-package: ${bluetooth_package}"
17267
# Check whether --with-charset-package was given.
17268
if test "${with_charset_package+set}" = set; then
17269
withval=$with_charset_package; packages="${withval}"
17276
if test "${packages}" = "no"
17278
charset_package="none"
17279
elif test "${packages}" = "yes"
17285
charset_package=windows
17288
charset_package=msdos
17291
charset_package=grub
17298
packages=`echo "${packages}" | sed -e 'y/,/ /'`
17301
test -z "${charset_package}" && {
17302
test -n "${packages}" && {
17303
for package in ${packages}
17305
pkg-config --exists "${package}" && {
17306
charset_package="${package}"
17307
charset_cflags=`pkg-config --cflags-only-I "${package}"`
17308
charset_libs=`pkg-config ${pkgconfig_flags_libs} "${package}"`
17315
if test "${ac_cv_header_iconv_h+set}" = set; then
17316
{ $as_echo "$as_me:$LINENO: checking for iconv.h" >&5
17317
$as_echo_n "checking for iconv.h... " >&6; }
17318
if test "${ac_cv_header_iconv_h+set}" = set; then
17319
$as_echo_n "(cached) " >&6
17321
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
17322
$as_echo "$ac_cv_header_iconv_h" >&6; }
17324
# Is the header compilable?
17325
{ $as_echo "$as_me:$LINENO: checking iconv.h usability" >&5
17326
$as_echo_n "checking iconv.h usability... " >&6; }
17327
cat >conftest.$ac_ext <<_ACEOF
17330
cat confdefs.h >>conftest.$ac_ext
17331
cat >>conftest.$ac_ext <<_ACEOF
17332
/* end confdefs.h. */
17333
$ac_includes_default
17336
rm -f conftest.$ac_objext
17337
if { (ac_try="$ac_compile"
17338
case "(($ac_try" in
17339
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17340
*) ac_try_echo=$ac_try;;
17342
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17343
$as_echo "$ac_try_echo") >&5
17344
(eval "$ac_compile") 2>conftest.er1
17346
grep -v '^ *+' conftest.er1 >conftest.err
17348
cat conftest.err >&5
17349
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350
(exit $ac_status); } && {
17351
test -z "$ac_c_werror_flag" ||
17352
test ! -s conftest.err
17353
} && test -s conftest.$ac_objext; then
17354
ac_header_compiler=yes
17356
$as_echo "$as_me: failed program was:" >&5
17357
sed 's/^/| /' conftest.$ac_ext >&5
17359
ac_header_compiler=no
17362
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17363
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17364
$as_echo "$ac_header_compiler" >&6; }
17366
# Is the header present?
17367
{ $as_echo "$as_me:$LINENO: checking iconv.h presence" >&5
17368
$as_echo_n "checking iconv.h presence... " >&6; }
17369
cat >conftest.$ac_ext <<_ACEOF
17372
cat confdefs.h >>conftest.$ac_ext
17373
cat >>conftest.$ac_ext <<_ACEOF
17374
/* end confdefs.h. */
17377
if { (ac_try="$ac_cpp conftest.$ac_ext"
17378
case "(($ac_try" in
17379
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380
*) ac_try_echo=$ac_try;;
17382
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17383
$as_echo "$ac_try_echo") >&5
17384
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17386
grep -v '^ *+' conftest.er1 >conftest.err
17388
cat conftest.err >&5
17389
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390
(exit $ac_status); } >/dev/null && {
17391
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17392
test ! -s conftest.err
17394
ac_header_preproc=yes
17396
$as_echo "$as_me: failed program was:" >&5
17397
sed 's/^/| /' conftest.$ac_ext >&5
17399
ac_header_preproc=no
17402
rm -f conftest.err conftest.$ac_ext
17403
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17404
$as_echo "$ac_header_preproc" >&6; }
17406
# So? What about this header?
17407
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17409
{ $as_echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
17410
$as_echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17411
{ $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
17412
$as_echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
17413
ac_header_preproc=yes
17416
{ $as_echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
17417
$as_echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
17418
{ $as_echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
17419
$as_echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
17420
{ $as_echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
17421
$as_echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
17422
{ $as_echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
17423
$as_echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
17424
{ $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
17425
$as_echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
17426
{ $as_echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
17427
$as_echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
17429
## --------------------------------------- ##
17430
## Report this to http://mielke.cc/brltty/ ##
17431
## --------------------------------------- ##
17433
) | sed "s/^/$as_me: WARNING: /" >&2
17436
{ $as_echo "$as_me:$LINENO: checking for iconv.h" >&5
17437
$as_echo_n "checking for iconv.h... " >&6; }
17438
if test "${ac_cv_header_iconv_h+set}" = set; then
17439
$as_echo_n "(cached) " >&6
17441
ac_cv_header_iconv_h=$ac_header_preproc
17443
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
17444
$as_echo "$ac_cv_header_iconv_h" >&6; }
17447
if test "x$ac_cv_header_iconv_h" = x""yes; then
17448
charset_package=iconv
17458
test -n "${charset_package}" && break
17461
{ $as_echo "$as_me:$LINENO: charset package not available: ${package}" >&5
17462
$as_echo "$as_me: charset package not available: ${package}" >&6;}
17467
test -z "${charset_package}" && {
17468
charset_package="none"
17469
{ $as_echo "$as_me:$LINENO: WARNING: charset support not available on this platform" >&5
17470
$as_echo "$as_me: WARNING: charset support not available on this platform" >&2;}
17477
cat >>confdefs.h <<_ACEOF
17478
#define CHARSET_PACKAGE ${charset_package}
17481
brltty_uc=`echo "use_charset_package_${charset_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
17482
cat >>confdefs.h <<_ACEOF
17483
#define ${brltty_uc} 1
17486
brltty_summary_lines="${brltty_summary_lines}
17487
charset-package: ${charset_package}"
17494
# Check whether --with-hostcmd-package was given.
17495
if test "${with_hostcmd_package+set}" = set; then
17496
withval=$with_hostcmd_package; packages="${withval}"
17503
if test "${packages}" = "no"
17505
hostcmd_package="none"
17506
elif test "${packages}" = "yes"
17516
packages=`echo "${packages}" | sed -e 'y/,/ /'`
17519
test -z "${hostcmd_package}" && {
17520
test -n "${packages}" && {
17521
for package in ${packages}
17523
pkg-config --exists "${package}" && {
17524
hostcmd_package="${package}"
17525
hostcmd_cflags=`pkg-config --cflags-only-I "${package}"`
17526
hostcmd_libs=`pkg-config ${pkgconfig_flags_libs} "${package}"`
17533
{ $as_echo "$as_me:$LINENO: checking whether fork is declared" >&5
17534
$as_echo_n "checking whether fork is declared... " >&6; }
17535
if test "${ac_cv_have_decl_fork+set}" = set; then
17536
$as_echo_n "(cached) " >&6
17538
cat >conftest.$ac_ext <<_ACEOF
17541
cat confdefs.h >>conftest.$ac_ext
17542
cat >>conftest.$ac_ext <<_ACEOF
17543
/* end confdefs.h. */
17544
$ac_includes_default
17556
rm -f conftest.$ac_objext
17557
if { (ac_try="$ac_compile"
17558
case "(($ac_try" in
17559
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560
*) ac_try_echo=$ac_try;;
17562
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17563
$as_echo "$ac_try_echo") >&5
17564
(eval "$ac_compile") 2>conftest.er1
17566
grep -v '^ *+' conftest.er1 >conftest.err
17568
cat conftest.err >&5
17569
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570
(exit $ac_status); } && {
17571
test -z "$ac_c_werror_flag" ||
17572
test ! -s conftest.err
17573
} && test -s conftest.$ac_objext; then
17574
ac_cv_have_decl_fork=yes
17576
$as_echo "$as_me: failed program was:" >&5
17577
sed 's/^/| /' conftest.$ac_ext >&5
17579
ac_cv_have_decl_fork=no
17582
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17584
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fork" >&5
17585
$as_echo "$ac_cv_have_decl_fork" >&6; }
17586
if test "x$ac_cv_have_decl_fork" = x""yes; then
17587
if test "${ac_cv_header_signal_h+set}" = set; then
17588
{ $as_echo "$as_me:$LINENO: checking for signal.h" >&5
17589
$as_echo_n "checking for signal.h... " >&6; }
17590
if test "${ac_cv_header_signal_h+set}" = set; then
17591
$as_echo_n "(cached) " >&6
17593
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
17594
$as_echo "$ac_cv_header_signal_h" >&6; }
17596
# Is the header compilable?
17597
{ $as_echo "$as_me:$LINENO: checking signal.h usability" >&5
17598
$as_echo_n "checking signal.h usability... " >&6; }
17599
cat >conftest.$ac_ext <<_ACEOF
17602
cat confdefs.h >>conftest.$ac_ext
17603
cat >>conftest.$ac_ext <<_ACEOF
17604
/* end confdefs.h. */
17605
$ac_includes_default
17606
#include <signal.h>
17608
rm -f conftest.$ac_objext
17609
if { (ac_try="$ac_compile"
17610
case "(($ac_try" in
17611
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612
*) ac_try_echo=$ac_try;;
17614
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17615
$as_echo "$ac_try_echo") >&5
17616
(eval "$ac_compile") 2>conftest.er1
17618
grep -v '^ *+' conftest.er1 >conftest.err
17620
cat conftest.err >&5
17621
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622
(exit $ac_status); } && {
17623
test -z "$ac_c_werror_flag" ||
17624
test ! -s conftest.err
17625
} && test -s conftest.$ac_objext; then
17626
ac_header_compiler=yes
17628
$as_echo "$as_me: failed program was:" >&5
17629
sed 's/^/| /' conftest.$ac_ext >&5
17631
ac_header_compiler=no
17634
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17635
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17636
$as_echo "$ac_header_compiler" >&6; }
17638
# Is the header present?
17639
{ $as_echo "$as_me:$LINENO: checking signal.h presence" >&5
17640
$as_echo_n "checking signal.h presence... " >&6; }
17641
cat >conftest.$ac_ext <<_ACEOF
17644
cat confdefs.h >>conftest.$ac_ext
17645
cat >>conftest.$ac_ext <<_ACEOF
17646
/* end confdefs.h. */
17647
#include <signal.h>
17649
if { (ac_try="$ac_cpp conftest.$ac_ext"
17650
case "(($ac_try" in
17651
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652
*) ac_try_echo=$ac_try;;
17654
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17655
$as_echo "$ac_try_echo") >&5
17656
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17658
grep -v '^ *+' conftest.er1 >conftest.err
17660
cat conftest.err >&5
17661
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662
(exit $ac_status); } >/dev/null && {
17663
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17664
test ! -s conftest.err
17666
ac_header_preproc=yes
17668
$as_echo "$as_me: failed program was:" >&5
17669
sed 's/^/| /' conftest.$ac_ext >&5
17671
ac_header_preproc=no
17674
rm -f conftest.err conftest.$ac_ext
17675
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17676
$as_echo "$ac_header_preproc" >&6; }
17678
# So? What about this header?
17679
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17681
{ $as_echo "$as_me:$LINENO: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&5
17682
$as_echo "$as_me: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17683
{ $as_echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the compiler's result" >&5
17684
$as_echo "$as_me: WARNING: signal.h: proceeding with the compiler's result" >&2;}
17685
ac_header_preproc=yes
17688
{ $as_echo "$as_me:$LINENO: WARNING: signal.h: present but cannot be compiled" >&5
17689
$as_echo "$as_me: WARNING: signal.h: present but cannot be compiled" >&2;}
17690
{ $as_echo "$as_me:$LINENO: WARNING: signal.h: check for missing prerequisite headers?" >&5
17691
$as_echo "$as_me: WARNING: signal.h: check for missing prerequisite headers?" >&2;}
17692
{ $as_echo "$as_me:$LINENO: WARNING: signal.h: see the Autoconf documentation" >&5
17693
$as_echo "$as_me: WARNING: signal.h: see the Autoconf documentation" >&2;}
17694
{ $as_echo "$as_me:$LINENO: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&5
17695
$as_echo "$as_me: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&2;}
17696
{ $as_echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the preprocessor's result" >&5
17697
$as_echo "$as_me: WARNING: signal.h: proceeding with the preprocessor's result" >&2;}
17698
{ $as_echo "$as_me:$LINENO: WARNING: signal.h: in the future, the compiler will take precedence" >&5
17699
$as_echo "$as_me: WARNING: signal.h: in the future, the compiler will take precedence" >&2;}
17701
## --------------------------------------- ##
17702
## Report this to http://mielke.cc/brltty/ ##
17703
## --------------------------------------- ##
17705
) | sed "s/^/$as_me: WARNING: /" >&2
17708
{ $as_echo "$as_me:$LINENO: checking for signal.h" >&5
17709
$as_echo_n "checking for signal.h... " >&6; }
17710
if test "${ac_cv_header_signal_h+set}" = set; then
17711
$as_echo_n "(cached) " >&6
17713
ac_cv_header_signal_h=$ac_header_preproc
17715
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
17716
$as_echo "$ac_cv_header_signal_h" >&6; }
17719
if test "x$ac_cv_header_signal_h" = x""yes; then
17720
{ $as_echo "$as_me:$LINENO: checking whether SIGCHLD is declared" >&5
17721
$as_echo_n "checking whether SIGCHLD is declared... " >&6; }
17722
if test "${ac_cv_have_decl_SIGCHLD+set}" = set; then
17723
$as_echo_n "(cached) " >&6
17725
cat >conftest.$ac_ext <<_ACEOF
17728
cat confdefs.h >>conftest.$ac_ext
17729
cat >>conftest.$ac_ext <<_ACEOF
17730
/* end confdefs.h. */
17731
#include <signal.h>
17745
rm -f conftest.$ac_objext
17746
if { (ac_try="$ac_compile"
17747
case "(($ac_try" in
17748
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749
*) ac_try_echo=$ac_try;;
17751
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17752
$as_echo "$ac_try_echo") >&5
17753
(eval "$ac_compile") 2>conftest.er1
17755
grep -v '^ *+' conftest.er1 >conftest.err
17757
cat conftest.err >&5
17758
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759
(exit $ac_status); } && {
17760
test -z "$ac_c_werror_flag" ||
17761
test ! -s conftest.err
17762
} && test -s conftest.$ac_objext; then
17763
ac_cv_have_decl_SIGCHLD=yes
17765
$as_echo "$as_me: failed program was:" >&5
17766
sed 's/^/| /' conftest.$ac_ext >&5
17768
ac_cv_have_decl_SIGCHLD=no
17771
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17773
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_SIGCHLD" >&5
17774
$as_echo "$ac_cv_have_decl_SIGCHLD" >&6; }
17775
if test "x$ac_cv_have_decl_SIGCHLD" = x""yes; then
17776
hostcmd_package=unix
17792
test -n "${hostcmd_package}" && break
17795
{ $as_echo "$as_me:$LINENO: host command package not available: ${package}" >&5
17796
$as_echo "$as_me: host command package not available: ${package}" >&6;}
17801
test -z "${hostcmd_package}" && {
17802
hostcmd_package="none"
17803
{ $as_echo "$as_me:$LINENO: WARNING: host command support not available on this platform" >&5
17804
$as_echo "$as_me: WARNING: host command support not available on this platform" >&2;}
17811
cat >>confdefs.h <<_ACEOF
17812
#define HOSTCMD_PACKAGE ${hostcmd_package}
17815
brltty_uc=`echo "use_hostcmd_package_${hostcmd_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
17816
cat >>confdefs.h <<_ACEOF
17817
#define ${brltty_uc} 1
17820
brltty_summary_lines="${brltty_summary_lines}
17821
hostcmd-package: ${hostcmd_package}"
17828
# Check whether --with-mount-package was given.
17829
if test "${with_mount_package+set}" = set; then
17830
withval=$with_mount_package; packages="${withval}"
17837
if test "${packages}" = "no"
17839
mount_package="none"
17840
elif test "${packages}" = "yes"
17842
packages="mntent mnttab"
17850
packages=`echo "${packages}" | sed -e 'y/,/ /'`
17853
test -z "${mount_package}" && {
17854
test -n "${packages}" && {
17855
for package in ${packages}
17857
pkg-config --exists "${package}" && {
17858
mount_package="${package}"
17859
mount_cflags=`pkg-config --cflags-only-I "${package}"`
17860
mount_libs=`pkg-config ${pkgconfig_flags_libs} "${package}"`
17867
if test "${ac_cv_header_mntent_h+set}" = set; then
17868
{ $as_echo "$as_me:$LINENO: checking for mntent.h" >&5
17869
$as_echo_n "checking for mntent.h... " >&6; }
17870
if test "${ac_cv_header_mntent_h+set}" = set; then
17871
$as_echo_n "(cached) " >&6
17873
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mntent_h" >&5
17874
$as_echo "$ac_cv_header_mntent_h" >&6; }
17876
# Is the header compilable?
17877
{ $as_echo "$as_me:$LINENO: checking mntent.h usability" >&5
17878
$as_echo_n "checking mntent.h usability... " >&6; }
17879
cat >conftest.$ac_ext <<_ACEOF
17882
cat confdefs.h >>conftest.$ac_ext
17883
cat >>conftest.$ac_ext <<_ACEOF
17884
/* end confdefs.h. */
17885
$ac_includes_default
17886
#include <mntent.h>
17888
rm -f conftest.$ac_objext
17889
if { (ac_try="$ac_compile"
17890
case "(($ac_try" in
17891
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17892
*) ac_try_echo=$ac_try;;
17894
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17895
$as_echo "$ac_try_echo") >&5
17896
(eval "$ac_compile") 2>conftest.er1
17898
grep -v '^ *+' conftest.er1 >conftest.err
17900
cat conftest.err >&5
17901
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902
(exit $ac_status); } && {
17903
test -z "$ac_c_werror_flag" ||
17904
test ! -s conftest.err
17905
} && test -s conftest.$ac_objext; then
17906
ac_header_compiler=yes
17908
$as_echo "$as_me: failed program was:" >&5
17909
sed 's/^/| /' conftest.$ac_ext >&5
17911
ac_header_compiler=no
17914
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17915
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17916
$as_echo "$ac_header_compiler" >&6; }
17918
# Is the header present?
17919
{ $as_echo "$as_me:$LINENO: checking mntent.h presence" >&5
17920
$as_echo_n "checking mntent.h presence... " >&6; }
17921
cat >conftest.$ac_ext <<_ACEOF
17924
cat confdefs.h >>conftest.$ac_ext
17925
cat >>conftest.$ac_ext <<_ACEOF
17926
/* end confdefs.h. */
17927
#include <mntent.h>
17929
if { (ac_try="$ac_cpp conftest.$ac_ext"
17930
case "(($ac_try" in
17931
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932
*) ac_try_echo=$ac_try;;
17934
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17935
$as_echo "$ac_try_echo") >&5
17936
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17938
grep -v '^ *+' conftest.er1 >conftest.err
17940
cat conftest.err >&5
17941
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942
(exit $ac_status); } >/dev/null && {
17943
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17944
test ! -s conftest.err
17946
ac_header_preproc=yes
17948
$as_echo "$as_me: failed program was:" >&5
17949
sed 's/^/| /' conftest.$ac_ext >&5
17951
ac_header_preproc=no
17954
rm -f conftest.err conftest.$ac_ext
17955
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17956
$as_echo "$ac_header_preproc" >&6; }
17958
# So? What about this header?
17959
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17961
{ $as_echo "$as_me:$LINENO: WARNING: mntent.h: accepted by the compiler, rejected by the preprocessor!" >&5
17962
$as_echo "$as_me: WARNING: mntent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17963
{ $as_echo "$as_me:$LINENO: WARNING: mntent.h: proceeding with the compiler's result" >&5
17964
$as_echo "$as_me: WARNING: mntent.h: proceeding with the compiler's result" >&2;}
17965
ac_header_preproc=yes
17968
{ $as_echo "$as_me:$LINENO: WARNING: mntent.h: present but cannot be compiled" >&5
17969
$as_echo "$as_me: WARNING: mntent.h: present but cannot be compiled" >&2;}
17970
{ $as_echo "$as_me:$LINENO: WARNING: mntent.h: check for missing prerequisite headers?" >&5
17971
$as_echo "$as_me: WARNING: mntent.h: check for missing prerequisite headers?" >&2;}
17972
{ $as_echo "$as_me:$LINENO: WARNING: mntent.h: see the Autoconf documentation" >&5
17973
$as_echo "$as_me: WARNING: mntent.h: see the Autoconf documentation" >&2;}
17974
{ $as_echo "$as_me:$LINENO: WARNING: mntent.h: section \"Present But Cannot Be Compiled\"" >&5
17975
$as_echo "$as_me: WARNING: mntent.h: section \"Present But Cannot Be Compiled\"" >&2;}
17976
{ $as_echo "$as_me:$LINENO: WARNING: mntent.h: proceeding with the preprocessor's result" >&5
17977
$as_echo "$as_me: WARNING: mntent.h: proceeding with the preprocessor's result" >&2;}
17978
{ $as_echo "$as_me:$LINENO: WARNING: mntent.h: in the future, the compiler will take precedence" >&5
17979
$as_echo "$as_me: WARNING: mntent.h: in the future, the compiler will take precedence" >&2;}
17981
## --------------------------------------- ##
17982
## Report this to http://mielke.cc/brltty/ ##
17983
## --------------------------------------- ##
17985
) | sed "s/^/$as_me: WARNING: /" >&2
17988
{ $as_echo "$as_me:$LINENO: checking for mntent.h" >&5
17989
$as_echo_n "checking for mntent.h... " >&6; }
17990
if test "${ac_cv_header_mntent_h+set}" = set; then
17991
$as_echo_n "(cached) " >&6
17993
ac_cv_header_mntent_h=$ac_header_preproc
17995
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mntent_h" >&5
17996
$as_echo "$ac_cv_header_mntent_h" >&6; }
17999
if test "x$ac_cv_header_mntent_h" = x""yes; then
18000
{ $as_echo "$as_me:$LINENO: checking for setmntent" >&5
18001
$as_echo_n "checking for setmntent... " >&6; }
18002
if test "${ac_cv_func_setmntent+set}" = set; then
18003
$as_echo_n "(cached) " >&6
18005
cat >conftest.$ac_ext <<_ACEOF
18008
cat confdefs.h >>conftest.$ac_ext
18009
cat >>conftest.$ac_ext <<_ACEOF
18010
/* end confdefs.h. */
18011
/* Define setmntent to an innocuous variant, in case <limits.h> declares setmntent.
18012
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18013
#define setmntent innocuous_setmntent
18015
/* System header to define __stub macros and hopefully few prototypes,
18016
which can conflict with char setmntent (); below.
18017
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18018
<limits.h> exists even on freestanding compilers. */
18021
# include <limits.h>
18023
# include <assert.h>
18028
/* Override any GCC internal prototype to avoid an error.
18029
Use char because int might match the return type of a GCC
18030
builtin and then its argument prototype would still apply. */
18035
/* The GNU C library defines this for functions which it implements
18036
to always fail with ENOSYS. Some functions are actually named
18037
something starting with __ and the normal name is an alias. */
18038
#if defined __stub_setmntent || defined __stub___setmntent
18045
return setmntent ();
18050
rm -f conftest.$ac_objext conftest$ac_exeext
18051
if { (ac_try="$ac_link"
18052
case "(($ac_try" in
18053
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054
*) ac_try_echo=$ac_try;;
18056
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18057
$as_echo "$ac_try_echo") >&5
18058
(eval "$ac_link") 2>conftest.er1
18060
grep -v '^ *+' conftest.er1 >conftest.err
18062
cat conftest.err >&5
18063
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064
(exit $ac_status); } && {
18065
test -z "$ac_c_werror_flag" ||
18066
test ! -s conftest.err
18067
} && test -s conftest$ac_exeext && {
18068
test "$cross_compiling" = yes ||
18069
$as_test_x conftest$ac_exeext
18071
ac_cv_func_setmntent=yes
18073
$as_echo "$as_me: failed program was:" >&5
18074
sed 's/^/| /' conftest.$ac_ext >&5
18076
ac_cv_func_setmntent=no
18079
rm -rf conftest.dSYM
18080
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18081
conftest$ac_exeext conftest.$ac_ext
18083
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_setmntent" >&5
18084
$as_echo "$ac_cv_func_setmntent" >&6; }
18085
if test "x$ac_cv_func_setmntent" = x""yes; then
18086
mount_package=mntent
18088
for ac_func in addmntent
18090
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18091
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18092
$as_echo_n "checking for $ac_func... " >&6; }
18093
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18094
$as_echo_n "(cached) " >&6
18096
cat >conftest.$ac_ext <<_ACEOF
18099
cat confdefs.h >>conftest.$ac_ext
18100
cat >>conftest.$ac_ext <<_ACEOF
18101
/* end confdefs.h. */
18102
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18103
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18104
#define $ac_func innocuous_$ac_func
18106
/* System header to define __stub macros and hopefully few prototypes,
18107
which can conflict with char $ac_func (); below.
18108
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18109
<limits.h> exists even on freestanding compilers. */
18112
# include <limits.h>
18114
# include <assert.h>
18119
/* Override any GCC internal prototype to avoid an error.
18120
Use char because int might match the return type of a GCC
18121
builtin and then its argument prototype would still apply. */
18126
/* The GNU C library defines this for functions which it implements
18127
to always fail with ENOSYS. Some functions are actually named
18128
something starting with __ and the normal name is an alias. */
18129
#if defined __stub_$ac_func || defined __stub___$ac_func
18136
return $ac_func ();
18141
rm -f conftest.$ac_objext conftest$ac_exeext
18142
if { (ac_try="$ac_link"
18143
case "(($ac_try" in
18144
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145
*) ac_try_echo=$ac_try;;
18147
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18148
$as_echo "$ac_try_echo") >&5
18149
(eval "$ac_link") 2>conftest.er1
18151
grep -v '^ *+' conftest.er1 >conftest.err
18153
cat conftest.err >&5
18154
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155
(exit $ac_status); } && {
18156
test -z "$ac_c_werror_flag" ||
18157
test ! -s conftest.err
18158
} && test -s conftest$ac_exeext && {
18159
test "$cross_compiling" = yes ||
18160
$as_test_x conftest$ac_exeext
18162
eval "$as_ac_var=yes"
18164
$as_echo "$as_me: failed program was:" >&5
18165
sed 's/^/| /' conftest.$ac_ext >&5
18167
eval "$as_ac_var=no"
18170
rm -rf conftest.dSYM
18171
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18172
conftest$ac_exeext conftest.$ac_ext
18174
ac_res=`eval 'as_val=${'$as_ac_var'}
18175
$as_echo "$as_val"'`
18176
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18177
$as_echo "$ac_res" >&6; }
18178
as_val=`eval 'as_val=${'$as_ac_var'}
18179
$as_echo "$as_val"'`
18180
if test "x$as_val" = x""yes; then
18181
cat >>confdefs.h <<_ACEOF
18182
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18197
if test "${ac_cv_header_sys_mnttab_h+set}" = set; then
18198
{ $as_echo "$as_me:$LINENO: checking for sys/mnttab.h" >&5
18199
$as_echo_n "checking for sys/mnttab.h... " >&6; }
18200
if test "${ac_cv_header_sys_mnttab_h+set}" = set; then
18201
$as_echo_n "(cached) " >&6
18203
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mnttab_h" >&5
18204
$as_echo "$ac_cv_header_sys_mnttab_h" >&6; }
18206
# Is the header compilable?
18207
{ $as_echo "$as_me:$LINENO: checking sys/mnttab.h usability" >&5
18208
$as_echo_n "checking sys/mnttab.h usability... " >&6; }
18209
cat >conftest.$ac_ext <<_ACEOF
18212
cat confdefs.h >>conftest.$ac_ext
18213
cat >>conftest.$ac_ext <<_ACEOF
18214
/* end confdefs.h. */
18215
$ac_includes_default
18216
#include <sys/mnttab.h>
18218
rm -f conftest.$ac_objext
18219
if { (ac_try="$ac_compile"
18220
case "(($ac_try" in
18221
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18222
*) ac_try_echo=$ac_try;;
18224
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18225
$as_echo "$ac_try_echo") >&5
18226
(eval "$ac_compile") 2>conftest.er1
18228
grep -v '^ *+' conftest.er1 >conftest.err
18230
cat conftest.err >&5
18231
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232
(exit $ac_status); } && {
18233
test -z "$ac_c_werror_flag" ||
18234
test ! -s conftest.err
18235
} && test -s conftest.$ac_objext; then
18236
ac_header_compiler=yes
18238
$as_echo "$as_me: failed program was:" >&5
18239
sed 's/^/| /' conftest.$ac_ext >&5
18241
ac_header_compiler=no
18244
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18245
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18246
$as_echo "$ac_header_compiler" >&6; }
18248
# Is the header present?
18249
{ $as_echo "$as_me:$LINENO: checking sys/mnttab.h presence" >&5
18250
$as_echo_n "checking sys/mnttab.h presence... " >&6; }
18251
cat >conftest.$ac_ext <<_ACEOF
18254
cat confdefs.h >>conftest.$ac_ext
18255
cat >>conftest.$ac_ext <<_ACEOF
18256
/* end confdefs.h. */
18257
#include <sys/mnttab.h>
18259
if { (ac_try="$ac_cpp conftest.$ac_ext"
18260
case "(($ac_try" in
18261
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18262
*) ac_try_echo=$ac_try;;
18264
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18265
$as_echo "$ac_try_echo") >&5
18266
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18268
grep -v '^ *+' conftest.er1 >conftest.err
18270
cat conftest.err >&5
18271
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272
(exit $ac_status); } >/dev/null && {
18273
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18274
test ! -s conftest.err
18276
ac_header_preproc=yes
18278
$as_echo "$as_me: failed program was:" >&5
18279
sed 's/^/| /' conftest.$ac_ext >&5
18281
ac_header_preproc=no
18284
rm -f conftest.err conftest.$ac_ext
18285
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18286
$as_echo "$ac_header_preproc" >&6; }
18288
# So? What about this header?
18289
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18291
{ $as_echo "$as_me:$LINENO: WARNING: sys/mnttab.h: accepted by the compiler, rejected by the preprocessor!" >&5
18292
$as_echo "$as_me: WARNING: sys/mnttab.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18293
{ $as_echo "$as_me:$LINENO: WARNING: sys/mnttab.h: proceeding with the compiler's result" >&5
18294
$as_echo "$as_me: WARNING: sys/mnttab.h: proceeding with the compiler's result" >&2;}
18295
ac_header_preproc=yes
18298
{ $as_echo "$as_me:$LINENO: WARNING: sys/mnttab.h: present but cannot be compiled" >&5
18299
$as_echo "$as_me: WARNING: sys/mnttab.h: present but cannot be compiled" >&2;}
18300
{ $as_echo "$as_me:$LINENO: WARNING: sys/mnttab.h: check for missing prerequisite headers?" >&5
18301
$as_echo "$as_me: WARNING: sys/mnttab.h: check for missing prerequisite headers?" >&2;}
18302
{ $as_echo "$as_me:$LINENO: WARNING: sys/mnttab.h: see the Autoconf documentation" >&5
18303
$as_echo "$as_me: WARNING: sys/mnttab.h: see the Autoconf documentation" >&2;}
18304
{ $as_echo "$as_me:$LINENO: WARNING: sys/mnttab.h: section \"Present But Cannot Be Compiled\"" >&5
18305
$as_echo "$as_me: WARNING: sys/mnttab.h: section \"Present But Cannot Be Compiled\"" >&2;}
18306
{ $as_echo "$as_me:$LINENO: WARNING: sys/mnttab.h: proceeding with the preprocessor's result" >&5
18307
$as_echo "$as_me: WARNING: sys/mnttab.h: proceeding with the preprocessor's result" >&2;}
18308
{ $as_echo "$as_me:$LINENO: WARNING: sys/mnttab.h: in the future, the compiler will take precedence" >&5
18309
$as_echo "$as_me: WARNING: sys/mnttab.h: in the future, the compiler will take precedence" >&2;}
18311
## --------------------------------------- ##
18312
## Report this to http://mielke.cc/brltty/ ##
18313
## --------------------------------------- ##
18315
) | sed "s/^/$as_me: WARNING: /" >&2
18318
{ $as_echo "$as_me:$LINENO: checking for sys/mnttab.h" >&5
18319
$as_echo_n "checking for sys/mnttab.h... " >&6; }
18320
if test "${ac_cv_header_sys_mnttab_h+set}" = set; then
18321
$as_echo_n "(cached) " >&6
18323
ac_cv_header_sys_mnttab_h=$ac_header_preproc
18325
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mnttab_h" >&5
18326
$as_echo "$ac_cv_header_sys_mnttab_h" >&6; }
18329
if test "x$ac_cv_header_sys_mnttab_h" = x""yes; then
18330
mount_package=mnttab
18340
test -n "${mount_package}" && break
18343
{ $as_echo "$as_me:$LINENO: mount package not available: ${package}" >&5
18344
$as_echo "$as_me: mount package not available: ${package}" >&6;}
18349
test -z "${mount_package}" && {
18350
mount_package="none"
18351
{ $as_echo "$as_me:$LINENO: WARNING: mount support not available on this platform" >&5
18352
$as_echo "$as_me: WARNING: mount support not available on this platform" >&2;}
18359
cat >>confdefs.h <<_ACEOF
18360
#define MOUNT_PACKAGE ${mount_package}
18363
brltty_uc=`echo "use_mount_package_${mount_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
18364
cat >>confdefs.h <<_ACEOF
18365
#define ${brltty_uc} 1
18368
brltty_summary_lines="${brltty_summary_lines}
18369
mount-package: ${mount_package}"
16368
18371
brltty_item_entries_braille="${brltty_item_entries_braille} al-Alva"
16369
18372
brltty_item_codes_braille="${brltty_item_codes_braille} al"
16370
18373
brltty_item_names_braille="${brltty_item_names_braille} Alva"