~ubuntu-branches/ubuntu/quantal/brltty/quantal-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Luke Yelavich
  • Date: 2012-06-08 14:56:32 UTC
  • mfrom: (2.2.16 sid)
  • Revision ID: package-import@ubuntu.com-20120608145632-xr5cg5x2is0mo8ng
Tags: 4.4-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Add brltty-setup, installed in both the udeb and the normal system.
  - Add initramfs integration to run brltty-setup if necessary before
    usplash starts.
  - Add ubiquity integration to propagate any brltty configuration to the
    target system.
  - Add udev rules and /lib/brltty/brltty.sh to the normal (non-udeb)
    package as well.
  - Enable brltty if /etc/default/brltty has RUN_BRLTTY=yes, which is set
    by the installer if brltty is configured; add a NEWS entry for
    upgraders.
  - Don't install /etc/brltty.conf in the package
  - Install udev rules with the same name (85-brltty.rules) in the udeb as
    in the deb.
  - Remove the dh-lisp build-dependency, remove the cl-brlapi package, and
    adjust the brltty package description accordingly. dh-lisp is not
    in main.
  - Build for all python versions (python 2.6), not just the current
    version.
  - Enable brltty at startup on the target system if the alternate installer
    is used.
  - Create separate rules file for the brltty deb, with the rules now
    pointing to a separate script
  - Add gbp.conf file for git buildpackage
  - Do not build the at-spi driver, the legacy at-spi stack is no longer in
    the archive.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.63 for brltty 4.3.
 
3
# Generated by GNU Autoconf 2.63 for brltty 4.4.
4
4
#
5
5
# Report bugs to <http://mielke.cc/brltty/>.
6
6
#
596
596
# Identity of this package.
597
597
PACKAGE_NAME='brltty'
598
598
PACKAGE_TARNAME='brltty'
599
 
PACKAGE_VERSION='4.3'
600
 
PACKAGE_STRING='brltty 4.3'
 
599
PACKAGE_VERSION='4.4'
 
600
PACKAGE_STRING='brltty 4.4'
601
601
PACKAGE_BUGREPORT='http://mielke.cc/brltty/'
602
602
 
603
603
ac_unique_file="Programs/brltty.h"
665
665
cspi_includes
666
666
screen_libraries_as
667
667
screen_libraries_sc
 
668
screen_libraries_gb
668
669
screen_libraries_pb
669
670
screen_libraries_wn
670
671
screen_libraries_hd
708
709
text_table
709
710
install_text_tables
710
711
braille_device
711
 
first_serial_device
 
712
serial_first_device
712
713
braille_help
713
714
braille_drivers
714
715
braille_driver_objects
719
720
brltty_external_codes_braille
720
721
brltty_item_names_braille
721
722
brltty_item_codes_braille
 
723
braille_libraries_np
722
724
braille_libraries_xw
723
725
braille_libraries_vs
724
726
braille_libraries_vr
737
739
braille_libraries_lt
738
740
braille_libraries_lb
739
741
libbraille_root
 
742
braille_libraries_ir
740
743
braille_libraries_il
 
744
braille_libraries_hw
741
745
braille_libraries_ht
742
746
braille_libraries_hm
743
747
braille_libraries_fs
752
756
braille_libraries_ba
753
757
braille_libraries_at
754
758
braille_libraries_al
 
759
mount_libs
 
760
mount_cflags
 
761
mount_package
 
762
hostcmd_libs
 
763
hostcmd_cflags
 
764
hostcmd_package
 
765
charset_libs
 
766
charset_cflags
 
767
charset_package
755
768
bluetooth_libs
756
769
bluetooth_cflags
757
770
bluetooth_package
758
771
usb_libs
759
772
usb_cflags
760
773
usb_package
 
774
serial_libs
 
775
serial_cflags
 
776
serial_package
761
777
fm_tune_objects
762
778
midi_tune_objects
763
779
pcm_tune_objects
775
791
archive_prefix
776
792
LIBCXXFLAGS
777
793
LIBCFLAGS
778
 
SYSCFLAGS
779
794
install_xbrlapi
780
795
all_xbrlapi
781
796
brltty_libs_xtk
815
830
PYTHON_VERSION
816
831
PYTHON_PROLOGUE
817
832
PYTHON
 
833
OCAML_OK
 
834
OCAML_UNINSTALL_TARGET
 
835
OCAML_INSTALL_TARGET
 
836
OCAML_NCLIB
 
837
OCAML_CLIBS
 
838
OCAMLWIN32
 
839
OCAMLLIB
 
840
OCAMLVERSION
 
841
OCAMLBEST
 
842
OCAMLFIND
 
843
OCAMLOPTDOTOPT
 
844
OCAMLCDOTOPT
 
845
OCAMLOPT
 
846
OCAMLMKLIB
 
847
OCAMLC
818
848
LISP_OK
819
849
JAVA_OK
820
850
JAVA_JNI_DIR
830
860
JAVADOC_NAME
831
861
JAVAC
832
862
JAVAC_PATH
833
 
CAML_OK
834
 
OCAML_UNINSTALL_TARGET
835
 
OCAML_INSTALL_TARGET
836
 
OCAML_NCLIB
837
 
OCAML_CLIBS
838
 
OCAMLWIN32
839
 
OCAMLLIB
840
 
OCAMLVERSION
841
 
OCAMLBEST
842
 
OCAMLFIND
843
 
OCAMLOPTDOTOPT
844
 
OCAMLCDOTOPT
845
 
OCAMLOPT
846
 
OCAMLMKLIB
847
 
OCAMLC
848
863
icu_libraries
849
864
icu_includes
850
865
ICU_CONFIG
875
890
CFLAGS
876
891
CC
877
892
SET_MAKE
878
 
compiler_prefix
879
893
include_directory
880
894
manpage_directory
881
895
tables_directory
954
968
with_tables_directory
955
969
with_manpage_directory
956
970
with_include_directory
957
 
with_compiler_prefix
958
971
with_init_path
959
972
with_stderr_path
960
973
enable_standalone_programs
963
976
enable_iconv
964
977
enable_api
965
978
with_api_parameters
966
 
enable_caml_bindings
967
979
enable_java_bindings
968
980
enable_lisp_bindings
 
981
enable_ocaml_bindings
969
982
enable_python_bindings
970
983
enable_tcl_bindings
971
984
with_tcl_config
979
992
enable_midi_support
980
993
enable_fm_support
981
994
enable_gpm
 
995
with_serial_package
982
996
with_usb_package
983
997
with_bluetooth_package
 
998
with_charset_package
 
999
with_hostcmd_package
 
1000
with_mount_package
984
1001
with_libbraille
985
1002
with_braille_driver
986
1003
with_braille_parameters
1569
1586
  # Omit some internal or obsolete options to make the list less imposing.
1570
1587
  # This message is too long to be a string in the A/UX 3.1 sh.
1571
1588
  cat <<_ACEOF
1572
 
\`configure' configures brltty 4.3 to adapt to many kinds of systems.
 
1589
\`configure' configures brltty 4.4 to adapt to many kinds of systems.
1573
1590
 
1574
1591
Usage: $0 [OPTION]... [VAR=VALUE]...
1575
1592
 
1635
1652
 
1636
1653
if test -n "$ac_init_help"; then
1637
1654
  case $ac_init_help in
1638
 
     short | recursive ) echo "Configuration of brltty 4.3:";;
 
1655
     short | recursive ) echo "Configuration of brltty 4.4:";;
1639
1656
   esac
1640
1657
  cat <<\_ACEOF
1641
1658
 
1648
1665
  --disable-icu                 support for Unicode-based internationalization
1649
1666
  --disable-iconv               support for character encoding conversion
1650
1667
  --disable-api                 the application programming interface
1651
 
  --disable-caml-bindings       Caml bindings for BrlAPI
1652
1668
  --disable-java-bindings       Java bindings for BrlAPI
1653
1669
  --disable-lisp-bindings       Lisp bindings for BrlAPI
 
1670
  --disable-ocaml-bindings      OCaml bindings for BrlAPI
1654
1671
  --disable-python-bindings     Python bindings for BrlAPI
1655
1672
  --disable-tcl-bindings        Tcl bindings for BrlAPI
1656
1673
  --disable-x                   support for X11
1686
1703
                                path to directory containing manual pages
1687
1704
  --with-include-directory=DIRECTORY
1688
1705
                                path to directory containing header files
1689
 
  --with-compiler-prefix=PREFIX prefix for compiler programs
1690
1706
  --with-init-path=FILE         path to real init program
1691
1707
  --with-stderr-path=FILE       path to standard error log file
1692
1708
  --with-api-parameters=DRIVER:PARAMETER=SETTING... (comma-separated)
1698
1714
                                curses)
1699
1715
  --with-gui-toolkit=PACKAGE    which gui toolkit package to use (Xaw Xaw3d
1700
1716
                                neXtaw XawPlus Xm)
 
1717
  --with-serial-package=PACKAGE which serial package to use
1701
1718
  --with-usb-package=PACKAGE    which USB package to use
1702
1719
  --with-bluetooth-package=PACKAGE
1703
1720
                                which Bluetooth package to use
 
1721
  --with-charset-package=PACKAGE
 
1722
                                which charset package to use
 
1723
  --with-hostcmd-package=PACKAGE
 
1724
                                which host command package to use
 
1725
  --with-mount-package=PACKAGE  which mount package to use
1704
1726
  --with-libbraille=DIRECTORY   where the Libbraille package is installed
1705
1727
  --with-braille-driver=DRIVER  braille driver(s) to build in
1706
1728
                                - al  Alva
1717
1739
                                - fs  FreedomScientific
1718
1740
                                - hm  HIMS
1719
1741
                                - ht  HandyTech
 
1742
                                - hw  HumanWare
1720
1743
                                - il  IrisLinux
 
1744
                                - ir  Iris
1721
1745
                                - lb  Libbraille
1722
1746
                                - lt  LogText
1723
1747
                                - mb  MultiBraille
1735
1759
                                - vr  Virtual
1736
1760
                                - vs  VisioBraille
1737
1761
                                - xw  XWindow
 
1762
                                - np  NinePoint
1738
1763
  --with-braille-parameters=DRIVER:PARAMETER=SETTING... (comma-separated)
1739
1764
                                default parameters for the braille driver(s)
1740
1765
  --with-braille-device=DEVICE  default braille display device
1861
1886
                                - hd  Hurd
1862
1887
                                - wn  Windows
1863
1888
                                - pb  PcBios
 
1889
                                - gb  Grub
1864
1890
                                - sc  Screen
1865
1891
                                - as  AtSpi
1866
1892
                                - a2  AtSpi2
1945
1971
test -n "$ac_init_help" && exit $ac_status
1946
1972
if $ac_init_version; then
1947
1973
  cat <<\_ACEOF
1948
 
brltty configure 4.3
 
1974
brltty configure 4.4
1949
1975
generated by GNU Autoconf 2.63
1950
1976
 
1951
1977
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1959
1985
This file contains any messages produced by compilers while
1960
1986
running configure, to aid debugging if configure makes a mistake.
1961
1987
 
1962
 
It was created by brltty $as_me 4.3, which was
 
1988
It was created by brltty $as_me 4.4, which was
1963
1989
generated by GNU Autoconf 2.63.  Invocation command line was
1964
1990
 
1965
1991
  $ $0 $@
2347
2373
 
2348
2374
api_minor=5
2349
2375
 
2350
 
api_revision=6
 
2376
api_revision=7
2351
2377
 
2352
2378
api_version=${api_major}.${api_minor}
2353
2379
 
2374
2400
_ACEOF
2375
2401
 
2376
2402
 
2377
 
PACKAGE_TITLE="`echo "${PACKAGE_NAME}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`"
 
2403
PACKAGE_TITLE=`echo "${PACKAGE_NAME}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
2378
2404
 
2379
2405
 
2380
2406
cat >>confdefs.h <<_ACEOF
2785
2811
brltty_summary_lines="${brltty_summary_lines}
2786
2812
   include-directory: ${include_directory}"
2787
2813
 
2788
 
brltty_default_compiler_prefix="${host_os}-"
2789
 
 
2790
 
# Check whether --with-compiler-prefix was given.
2791
 
if test "${with_compiler_prefix+set}" = set; then
2792
 
  withval=$with_compiler_prefix; compiler_prefix="${withval}"
2793
 
else
2794
 
  compiler_prefix=""
2795
 
 
2796
 
fi
2797
 
 
2798
 
if test "${compiler_prefix}" = "no"
2799
 
then
2800
 
   compiler_prefix=""
2801
 
elif test "${compiler_prefix}" = "yes"
2802
 
then
2803
 
   compiler_prefix="${brltty_default_compiler_prefix}"
2804
 
fi
2805
 
 
2806
 
brltty_summary_lines="${brltty_summary_lines}
2807
 
   compiler-prefix: ${compiler_prefix}"
2808
 
 
2809
2814
brltty_default_init_path=/sbin/init_real
2810
2815
 
2811
2816
# Check whether --with-init-path was given.
2894
2899
fi
2895
2900
 
2896
2901
 
2897
 
brltty_gcc_options="-Wall"
2898
 
case "${build_os} ${host_os}"
2899
 
in
2900
 
   linux*\ eabi*)
2901
 
      if test -z "${ANDROID_HOME}"
2902
 
      then
2903
 
         { { $as_echo "$as_me:$LINENO: error: ANDROID_HOME not set" >&5
2904
 
$as_echo "$as_me: error: ANDROID_HOME not set" >&2;}
2905
 
   { (exit 1); exit 1; }; }
2906
 
      fi
2907
 
 
2908
 
      if test -z "${ANDROID_TOOLCHAIN_VERSION}"
2909
 
      then
2910
 
         { { $as_echo "$as_me:$LINENO: error: ANDROID_TOOLCHAIN_VERSION not set" >&5
2911
 
$as_echo "$as_me: error: ANDROID_TOOLCHAIN_VERSION not set" >&2;}
2912
 
   { (exit 1); exit 1; }; }
2913
 
      fi
2914
 
 
2915
 
      ANDROID_LIBS_PATH="${ANDROID_HOME}/out/target/product/generic/obj/lib"
2916
 
      ANDROID_TOOLCHAIN_PATH="${ANDROID_HOME}/prebuilt/linux-x86/toolchain/${host_cpu}-eabi-${ANDROID_TOOLCHAIN_VERSION}"
2917
 
 
2918
 
      CPPFLAGS="${CPPFLAGS} -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__"
2919
 
      CPPFLAGS="${CPPFLAGS} -DANDROID -DSK_RELEASE"
2920
 
      CPPFLAGS="${CPPFLAGS} -DNDEBUG -include ${ANDROID_HOME}/system/core/include/arch/linux-${host_cpu}/AndroidConfig.h -UDEBUG"
2921
 
 
2922
 
      CPPFLAGS="${CPPFLAGS} -I${ANDROID_HOME}/bionic/libc/include -I${ANDROID_HOME}/bionic/libc/arch-${host_cpu}/include"
2923
 
      CPPFLAGS="${CPPFLAGS} -I${ANDROID_HOME}/bionic/libc/kernel/common -I${ANDROID_HOME}/bionic/libc/kernel/arch-${host_cpu}"
2924
 
 
2925
 
      LIBS="${LIBS} -Wl,-rpath-link=${ANDROID_LIBS_PATH}"
2926
 
      LIBS="${LIBS} ${ANDROID_LIBS_PATH}/crtend_android.o"
2927
 
      LIBS="${LIBS} ${ANDROID_LIBS_PATH}/crtbegin_dynamic.o"
2928
 
      LIBS="${LIBS} -nostdlib -L${ANDROID_LIBS_PATH} -lm -lc"
2929
 
      LIBS="${LIBS} ${ANDROID_TOOLCHAIN_PATH}/lib/gcc/${host_cpu}-eabi/${ANDROID_TOOLCHAIN_VERSION}/interwork/libgcc.a"
2930
 
 
2931
 
      brltty_gcc_options="${brltty_gcc_options} -march=armv5te -mtune=xscale -msoft-float -mthumb-interwork -fpic -fno-exceptions -ffunction-sections -funwind-tables -fstack-protector -fmessage-length=0"
2932
 
      ;;
2933
 
   cygwin*\ mingw*)
2934
 
      brltty_gcc_options="${brltty_gcc_options} -mno-cygwin"
2935
 
      ;;
2936
 
esac
2937
 
 
2938
2902
ac_ext=c
2939
2903
ac_cpp='$CPP $CPPFLAGS'
2940
2904
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868
3832
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869
3833
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870
3834
 
3871
 
test "${GCC}" = "yes" && CFLAGS="${CFLAGS} ${brltty_gcc_options}"
3872
 
 
3873
3835
if test -z "${CXX}"
3874
3836
then
3875
3837
   if test "${GCC}" = "yes"
4395
4357
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396
4358
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397
4359
 
4398
 
test "${GXX}" = "yes" && CXXFLAGS="${CXXFLAGS} ${brltty_gcc_options}"
4399
 
 
4400
 
for ac_prog in ld
4401
 
do
4402
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4403
 
set dummy $ac_prog; ac_word=$2
 
4360
 
 
4361
brltty_gcc_cflags="-std=gnu99 -Wall"
 
4362
brltty_gcc_cppflags=""
 
4363
case "${build_os} ${host_os}"
 
4364
in
 
4365
   cygwin*\ mingw*)
 
4366
      brltty_gcc_cflags="${brltty_gcc_cflags} -mno-cygwin"
 
4367
      ;;
 
4368
esac
 
4369
 
 
4370
case "${host_os}"
 
4371
in
 
4372
   elf*)
 
4373
      brltty_gcc_cppflags="${brltty_gcc_cppflags} -ffreestanding -nostdinc -nostdlib"
 
4374
      CPPFLAGS="${CPPFLAGS} -DGRUB_RUNTIME -DGRUB_FILE=__FILE__ -DNESTED_FUNC_ATTR="
 
4375
 
 
4376
      brltty_include_directory=`$CC -print-file-name=include`
 
4377
      CPPFLAGS="${CPPFLAGS} -isystem $brltty_include_directory"
 
4378
 
 
4379
      brltty_grub_root="`pwd`/grub-root"
 
4380
      test -d $brltty_grub_root || {
 
4381
         { { $as_echo "$as_me:$LINENO: error: symbolic link not found: $brltty_grub_root" >&5
 
4382
$as_echo "$as_me: error: symbolic link not found: $brltty_grub_root" >&2;}
 
4383
   { (exit 1); exit 1; }; }
 
4384
      }
 
4385
      CPPFLAGS="${CPPFLAGS} -I$brltty_grub_root -I$brltty_grub_root/grub-core/lib/posix_wrap/include -I$brltty_grub_root/include"
 
4386
      ;;
 
4387
esac
 
4388
 
 
4389
test "${GCC}" = "yes" && {
 
4390
   CFLAGS="${CFLAGS} ${brltty_gcc_cflags}"
 
4391
   CPPFLAGS="${CPPFLAGS} ${brltty_gcc_cppflags}"
 
4392
}
 
4393
 
 
4394
test "${GXX}" = "yes" && {
 
4395
   CXXFLAGS="${CXXFLAGS} ${brltty_gcc_cflags}"
 
4396
}
 
4397
 
 
4398
if test -n "$ac_tool_prefix"; then
 
4399
  # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
 
4400
set dummy ${ac_tool_prefix}ld; ac_word=$2
4404
4401
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4405
4402
$as_echo_n "checking for $ac_word... " >&6; }
4406
4403
if test "${ac_cv_prog_LD+set}" = set; then
4416
4413
  test -z "$as_dir" && as_dir=.
4417
4414
  for ac_exec_ext in '' $ac_executable_extensions; do
4418
4415
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419
 
    ac_cv_prog_LD="$ac_prog"
 
4416
    ac_cv_prog_LD="${ac_tool_prefix}ld"
4420
4417
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4421
4418
    break 2
4422
4419
  fi
4436
4433
fi
4437
4434
 
4438
4435
 
4439
 
  test -n "$LD" && break
4440
 
done
4441
 
test -n "$LD" || LD="ld"
 
4436
fi
 
4437
if test -z "$ac_cv_prog_LD"; then
 
4438
  ac_ct_LD=$LD
 
4439
  # Extract the first word of "ld", so it can be a program name with args.
 
4440
set dummy ld; ac_word=$2
 
4441
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4442
$as_echo_n "checking for $ac_word... " >&6; }
 
4443
if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
 
4444
  $as_echo_n "(cached) " >&6
 
4445
else
 
4446
  if test -n "$ac_ct_LD"; then
 
4447
  ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
 
4448
else
 
4449
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4450
for as_dir in $PATH
 
4451
do
 
4452
  IFS=$as_save_IFS
 
4453
  test -z "$as_dir" && as_dir=.
 
4454
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4455
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4456
    ac_cv_prog_ac_ct_LD="ld"
 
4457
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4458
    break 2
 
4459
  fi
 
4460
done
 
4461
done
 
4462
IFS=$as_save_IFS
 
4463
 
 
4464
fi
 
4465
fi
 
4466
ac_ct_LD=$ac_cv_prog_ac_ct_LD
 
4467
if test -n "$ac_ct_LD"; then
 
4468
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
 
4469
$as_echo "$ac_ct_LD" >&6; }
 
4470
else
 
4471
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4472
$as_echo "no" >&6; }
 
4473
fi
 
4474
 
 
4475
  if test "x$ac_ct_LD" = x; then
 
4476
    LD=""
 
4477
  else
 
4478
    case $cross_compiling:$ac_tool_warned in
 
4479
yes:)
 
4480
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4481
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4482
ac_tool_warned=yes ;;
 
4483
esac
 
4484
    LD=$ac_ct_LD
 
4485
  fi
 
4486
else
 
4487
  LD="$ac_cv_prog_LD"
 
4488
fi
4442
4489
 
4443
4490
if test -n "$ac_tool_prefix"; then
4444
4491
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4532
4579
  RANLIB="$ac_cv_prog_RANLIB"
4533
4580
fi
4534
4581
 
 
4582
 
4535
4583
for ac_prog in gawk mawk nawk awk
4536
4584
do
4537
4585
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4614
4662
   darwin*)
4615
4663
      brltty_cv_prog_ld_flags=""
4616
4664
      ;;
4617
 
   eabi*)
4618
 
      brltty_cv_prog_ld_flags="-Bdynamic -Wl,-T,${ANDROID_HOME}/build/core/armelf.x -Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc"
 
4665
   elf*)
 
4666
      brltty_cv_prog_ld_flags=""
4619
4667
      ;;
4620
4668
   *)
4621
4669
      { { $as_echo "$as_me:$LINENO: error: linkage editor program creation flags not configured for ${host_os}" >&5
4639
4687
else
4640
4688
   case "${host_os}"
4641
4689
   in
4642
 
      linux*|gnu*|openbsd*|freebsd*|kfreebsd*|*qnx*|cygwin*|mingw*|eabi*)
 
4690
      linux*|gnu*|openbsd*|freebsd*|kfreebsd*|*qnx*|cygwin*|mingw*|elf*)
4643
4691
         brltty_cv_prog_ld_static="-static"
4644
4692
         ;;
4645
4693
      netbsd*)
4885
4933
else
4886
4934
  case "${host_os}"
4887
4935
in
4888
 
   linux*|gnu*|openbsd*|freebsd*|kfreebsd*|netbsd*|*qnx*|cygwin*|mingw*|eabi*)
 
4936
   linux*|gnu*|openbsd*|freebsd*|kfreebsd*|netbsd*|*qnx*|cygwin*|mingw*|elf*)
4889
4937
      brltty_mkmod_ld_make="-shared"
4890
4938
      ;;
4891
4939
   solaris*)
4937
4985
else
4938
4986
  case "${host_os}"
4939
4987
in
4940
 
   linux*|gnu*|openbsd*|freebsd*|kfreebsd*|netbsd*|*qnx*|eabi*)
 
4988
   linux*|gnu*|openbsd*|freebsd*|kfreebsd*|netbsd*|*qnx*|elf*)
4941
4989
      brltty_mklib_ld_make="-shared"
4942
4990
      brltty_mklib_ld_options="-soname"
4943
4991
      ;;
4997
5045
else
4998
5046
  case "${host_os}"
4999
5047
in
5000
 
   linux*|gnu*|kfreebsd*|eabi*)
 
5048
   linux*|gnu*|kfreebsd*|elf*)
5001
5049
      brltty_cv_prog_conflibdir="/sbin/ldconfig -n"
5002
5050
      ;;
5003
5051
   *)
7825
7873
            ;;
7826
7874
      esac
7827
7875
 
7828
 
      # Check whether --enable-caml-bindings was given.
7829
 
if test "${enable_caml_bindings+set}" = set; then
7830
 
  enableval=$enable_caml_bindings;
7831
 
else
7832
 
  enableval="yes"
7833
 
fi
7834
 
 
7835
 
 
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;
 
7879
else
 
7880
  enableval="yes"
 
7881
fi
 
7882
 
 
7883
 
 
7884
brltty_enabled_java_bindings="${enableval}"
 
7885
brltty_summary_lines="${brltty_summary_lines}
 
7886
   java-bindings: ${brltty_enabled_java_bindings}"
 
7887
 
 
7888
if test "${enableval}" = "no"
 
7889
then
 
7890
   :
 
7891
else
 
7892
   if test "${enableval}" = "yes"
 
7893
   then
 
7894
      brltty_ok=true
 
7895
   else
 
7896
      brltty_ok=false
 
7897
   fi
 
7898
 
 
7899
   if "${brltty_ok}"
 
7900
   then
 
7901
 
 
7902
      ###############################################################################
 
7903
# libbrlapi - A library providing access to braille terminals for applications.
 
7904
#
 
7905
# Copyright (C) 2006-2012 by
 
7906
#   Samuel Thibault <Samuel.Thibault@ens-lyon.org>
 
7907
#   Sébastien Hinderer <Sebastien.Hinderer@ens-lyon.org>
 
7908
#
 
7909
# libbrlapi comes with ABSOLUTELY NO WARRANTY.
 
7910
#
 
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.
 
7915
#
 
7916
# Web Page: http://mielke.cc/brltty/
 
7917
#
 
7918
# This software is maintained by Dave Mielke <dave@mielke.cc>.
 
7919
###############################################################################
 
7920
 
 
7921
 
 
7922
 
 
7923
 
 
7924
 
 
7925
 
 
7926
 
 
7927
      if test -n "${JAVA_HOME}"
 
7928
then
 
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
 
7935
else
 
7936
  case $JAVAC_PATH in
 
7937
  [\\/]* | ?:[\\/]*)
 
7938
  ac_cv_path_JAVAC_PATH="$JAVAC_PATH" # Let the user override the test with a path.
 
7939
  ;;
 
7940
  *)
 
7941
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7942
for as_dir in "${JAVA_HOME}/bin"
 
7943
do
 
7944
  IFS=$as_save_IFS
 
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
 
7950
    break 2
 
7951
  fi
 
7952
done
 
7953
done
 
7954
IFS=$as_save_IFS
 
7955
 
 
7956
  ;;
 
7957
esac
 
7958
fi
 
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; }
 
7963
else
 
7964
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7965
$as_echo "no" >&6; }
 
7966
fi
 
7967
 
 
7968
 
 
7969
if test -n "${JAVAC_PATH}"
 
7970
then
 
7971
   JAVAC_NAME="javac"
 
7972
fi
 
7973
else
 
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
 
7980
else
 
7981
  case $JAVAC_PATH in
 
7982
  [\\/]* | ?:[\\/]*)
 
7983
  ac_cv_path_JAVAC_PATH="$JAVAC_PATH" # Let the user override the test with a path.
 
7984
  ;;
 
7985
  *)
 
7986
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7987
for as_dir in $PATH
 
7988
do
 
7989
  IFS=$as_save_IFS
 
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
 
7995
    break 2
 
7996
  fi
 
7997
done
 
7998
done
 
7999
IFS=$as_save_IFS
 
8000
 
 
8001
  ;;
 
8002
esac
 
8003
fi
 
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; }
 
8008
else
 
8009
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8010
$as_echo "no" >&6; }
 
8011
fi
 
8012
 
 
8013
 
 
8014
if test -n "${JAVAC_PATH}"
 
8015
then
 
8016
   JAVAC_NAME="javac"
 
8017
else
 
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
 
8024
else
 
8025
  case $JAVAC_PATH in
 
8026
  [\\/]* | ?:[\\/]*)
 
8027
  ac_cv_path_JAVAC_PATH="$JAVAC_PATH" # Let the user override the test with a path.
 
8028
  ;;
 
8029
  *)
 
8030
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8031
for as_dir in /usr/java/bin /usr/java/jdk*/bin
 
8032
do
 
8033
  IFS=$as_save_IFS
 
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
 
8039
    break 2
 
8040
  fi
 
8041
done
 
8042
done
 
8043
IFS=$as_save_IFS
 
8044
 
 
8045
  ;;
 
8046
esac
 
8047
fi
 
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; }
 
8052
else
 
8053
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8054
$as_echo "no" >&6; }
 
8055
fi
 
8056
 
 
8057
 
 
8058
if test -n "${JAVAC_PATH}"
 
8059
then
 
8060
   JAVAC_NAME="javac"
 
8061
else
 
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
 
8068
else
 
8069
  case $JAVAC_PATH in
 
8070
  [\\/]* | ?:[\\/]*)
 
8071
  ac_cv_path_JAVAC_PATH="$JAVAC_PATH" # Let the user override the test with a path.
 
8072
  ;;
 
8073
  *)
 
8074
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8075
for as_dir in $PATH
 
8076
do
 
8077
  IFS=$as_save_IFS
 
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
 
8083
    break 2
 
8084
  fi
 
8085
done
 
8086
done
 
8087
IFS=$as_save_IFS
 
8088
 
 
8089
  ;;
 
8090
esac
 
8091
fi
 
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; }
 
8096
else
 
8097
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8098
$as_echo "no" >&6; }
 
8099
fi
 
8100
 
 
8101
 
 
8102
if test -n "${JAVAC_PATH}"
 
8103
then
 
8104
   JAVAC_NAME="gcj"
 
8105
fi
 
8106
 
 
8107
fi
 
8108
 
 
8109
fi
 
8110
fi
 
8111
 
 
8112
JAVA_OK=false
 
8113
if test -n "${JAVAC_PATH}"
 
8114
then
 
8115
   { $as_echo "$as_me:$LINENO: Java compiler is ${JAVAC_PATH}" >&5
 
8116
$as_echo "$as_me: Java compiler is ${JAVAC_PATH}" >&6;}
 
8117
   JAVA_OK=true
 
8118
 
 
8119
   JAVA_ENCODING="UTF-8"
 
8120
   case "${JAVAC_NAME}"
 
8121
   in
 
8122
      javac) JAVAC_OPTIONS="-encoding ${JAVA_ENCODING}";;
 
8123
      gcj)   JAVAC_OPTIONS="-C --encoding=${JAVA_ENCODING}";;
 
8124
      *)     JAVAC_OPTIONS="";;
 
8125
   esac
 
8126
   JAVAC="${JAVAC_PATH} ${JAVAC_OPTIONS}"
 
8127
 
 
8128
 
 
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
8136
            s//\1/
 
8137
            q
 
8138
          }
 
8139
          /^X\(\/\/\)[^/].*/{
 
8140
            s//\1/
 
8141
            q
 
8142
          }
 
8143
          /^X\(\/\/\)$/{
 
8144
            s//\1/
 
8145
            q
 
8146
          }
 
8147
          /^X\(\/\).*/{
 
8148
            s//\1/
 
8149
            q
 
8150
          }
 
8151
          s/.*/./; q'`
 
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
8159
            s//\1/
 
8160
            q
 
8161
          }
 
8162
          /^X\(\/\/\)[^/].*/{
 
8163
            s//\1/
 
8164
            q
 
8165
          }
 
8166
          /^X\(\/\/\)$/{
 
8167
            s//\1/
 
8168
            q
 
8169
          }
 
8170
          /^X\(\/\).*/{
 
8171
            s//\1/
 
8172
            q
 
8173
          }
 
8174
          s/.*/./; q'`
 
8175
 
 
8176
   for ac_prog in javadoc gjdoc
 
8177
do
 
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
 
8184
else
 
8185
  if test -n "$JAVADOC_NAME"; then
 
8186
  ac_cv_prog_JAVADOC_NAME="$JAVADOC_NAME" # Let the user override the test.
 
8187
else
 
8188
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8189
for as_dir in "${JAVA_BIN}"
 
8190
do
 
8191
  IFS=$as_save_IFS
 
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
 
8197
    break 2
 
8198
  fi
 
8199
done
 
8200
done
 
8201
IFS=$as_save_IFS
 
8202
 
 
8203
fi
 
8204
fi
 
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; }
 
8209
else
 
8210
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8211
$as_echo "no" >&6; }
 
8212
fi
 
8213
 
 
8214
 
 
8215
  test -n "$JAVADOC_NAME" && break
 
8216
done
 
8217
 
 
8218
   if test -n "${JAVADOC_NAME}"
 
8219
   then
 
8220
      JAVADOC_PATH="${JAVA_BIN}/${JAVADOC_NAME}"
 
8221
   else
 
8222
      JAVADOC_PATH=":"
 
8223
   fi
 
8224
   JAVADOC="${JAVADOC_PATH} -encoding ${JAVA_ENCODING}"
 
8225
 
 
8226
 
 
8227
   for ac_prog in jar gjar
 
8228
do
 
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
 
8235
else
 
8236
  if test -n "$JAR_NAME"; then
 
8237
  ac_cv_prog_JAR_NAME="$JAR_NAME" # Let the user override the test.
 
8238
else
 
8239
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8240
for as_dir in "${JAVA_BIN}"
 
8241
do
 
8242
  IFS=$as_save_IFS
 
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
 
8248
    break 2
 
8249
  fi
 
8250
done
 
8251
done
 
8252
IFS=$as_save_IFS
 
8253
 
 
8254
fi
 
8255
fi
 
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; }
 
8260
else
 
8261
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8262
$as_echo "no" >&6; }
 
8263
fi
 
8264
 
 
8265
 
 
8266
  test -n "$JAR_NAME" && break
 
8267
done
 
8268
test -n "$JAR_NAME" || JAR_NAME="JAR_NOT_FOUND_BY_CONFIGURE"
 
8269
 
 
8270
   JAR="${JAVA_BIN}/${JAR_NAME}"
 
8271
 
 
8272
   JAVA_JAR_DIR=""
 
8273
for directory in /usr/share/java
 
8274
do
 
8275
   test -d "${directory}" && {
 
8276
      JAVA_JAR_DIR="${directory}"
 
8277
      break
 
8278
   }
 
8279
done
 
8280
 
 
8281
if test -n "${JAVA_JAR_DIR}"
 
8282
then
 
8283
   JAVA_JAR="yes"
 
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;}
 
8286
else
 
8287
   JAVA_JAR="no"
 
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;}
 
8290
fi
 
8291
 
 
8292
 
 
8293
 
 
8294
 
 
8295
 
 
8296
   JAVA_JNI_INC="${JAVA_ROOT}/include"
 
8297
   JAVA_JNI_HDR="jni.h"
 
8298
   JAVA_JNI_FLAGS=""
 
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
 
8305
fi
 
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; }
 
8310
else
 
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
 
8315
/* confdefs.h.  */
 
8316
_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}>
 
8322
_ACEOF
 
8323
rm -f conftest.$ac_objext
 
8324
if { (ac_try="$ac_compile"
 
8325
case "(($ac_try" in
 
8326
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8327
  *) ac_try_echo=$ac_try;;
 
8328
esac
 
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
 
8332
  ac_status=$?
 
8333
  grep -v '^ *+' conftest.er1 >conftest.err
 
8334
  rm -f conftest.er1
 
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
 
8342
else
 
8343
  $as_echo "$as_me: failed program was:" >&5
 
8344
sed 's/^/| /' conftest.$ac_ext >&5
 
8345
 
 
8346
        ac_header_compiler=no
 
8347
fi
 
8348
 
 
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; }
 
8352
 
 
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
 
8357
/* confdefs.h.  */
 
8358
_ACEOF
 
8359
cat confdefs.h >>conftest.$ac_ext
 
8360
cat >>conftest.$ac_ext <<_ACEOF
 
8361
/* end confdefs.h.  */
 
8362
#include <${JAVA_JNI_HDR}>
 
8363
_ACEOF
 
8364
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
8365
case "(($ac_try" in
 
8366
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8367
  *) ac_try_echo=$ac_try;;
 
8368
esac
 
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
 
8372
  ac_status=$?
 
8373
  grep -v '^ *+' conftest.er1 >conftest.err
 
8374
  rm -f conftest.er1
 
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
 
8380
       }; then
 
8381
  ac_header_preproc=yes
 
8382
else
 
8383
  $as_echo "$as_me: failed program was:" >&5
 
8384
sed 's/^/| /' conftest.$ac_ext >&5
 
8385
 
 
8386
  ac_header_preproc=no
 
8387
fi
 
8388
 
 
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; }
 
8392
 
 
8393
# So?  What about this header?
 
8394
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8395
  yes:no: )
 
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
 
8401
    ;;
 
8402
  no: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;}
 
8415
    ( cat <<\_ASBOX
 
8416
## --------------------------------------- ##
 
8417
## Report this to http://mielke.cc/brltty/ ##
 
8418
## --------------------------------------- ##
 
8419
_ASBOX
 
8420
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
8421
    ;;
 
8422
esac
 
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
 
8427
else
 
8428
  eval "$as_ac_Header=\$ac_header_preproc"
 
8429
fi
 
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; }
 
8434
 
 
8435
fi
 
8436
as_val=`eval 'as_val=${'$as_ac_Header'}
 
8437
                 $as_echo "$as_val"'`
 
8438
   if test "x$as_val" = x""yes; then
 
8439
  :
 
8440
else
 
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
 
8446
else
 
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"
 
8453
else
 
8454
  eval "$as_ac_File=no"
 
8455
fi
 
8456
fi
 
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}"
 
8465
else
 
8466
  JAVA_OK=false
 
8467
fi
 
8468
 
 
8469
fi
 
8470
 
 
8471
 
 
8472
 
 
8473
 
 
8474
 
 
8475
   JAVA_JNI_DIR=""
 
8476
for directory in /usr/lib/java /usr/lib/jni
 
8477
do
 
8478
   test -d "${directory}" && {
 
8479
      JAVA_JNI_DIR="${directory}"
 
8480
      break
 
8481
   }
 
8482
done
 
8483
 
 
8484
if test -n "${JAVA_JNI_DIR}"
 
8485
then
 
8486
   JAVA_JNI="yes"
 
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;}
 
8489
else
 
8490
   JAVA_JNI="no"
 
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;}
 
8493
fi
 
8494
 
 
8495
 
 
8496
 
 
8497
 
 
8498
else
 
8499
   { $as_echo "$as_me:$LINENO: WARNING: Java compiler not found" >&5
 
8500
$as_echo "$as_me: WARNING: Java compiler not found" >&2;}
 
8501
fi
 
8502
 
 
8503
 
 
8504
 
 
8505
      if "${JAVA_OK}"
 
8506
      then
 
8507
         api_bindings="${api_bindings} Java"
 
8508
      else
 
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;}
 
8511
      fi
 
8512
 
 
8513
 
 
8514
   else
 
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; }; }
 
8518
   fi
 
8519
fi
 
8520
      # Check whether --enable-lisp-bindings was given.
 
8521
if test "${enable_lisp_bindings+set}" = set; then
 
8522
  enableval=$enable_lisp_bindings;
 
8523
else
 
8524
  enableval="yes"
 
8525
fi
 
8526
 
 
8527
 
 
8528
brltty_enabled_lisp_bindings="${enableval}"
 
8529
brltty_summary_lines="${brltty_summary_lines}
 
8530
   lisp-bindings: ${brltty_enabled_lisp_bindings}"
 
8531
 
 
8532
if test "${enableval}" = "no"
 
8533
then
 
8534
   :
 
8535
else
 
8536
   if test "${enableval}" = "yes"
 
8537
   then
 
8538
      brltty_ok=true
 
8539
   else
 
8540
      brltty_ok=false
 
8541
   fi
 
8542
 
 
8543
   if "${brltty_ok}"
 
8544
   then
 
8545
 
 
8546
      ###############################################################################
 
8547
# libbrlapi - A library providing access to braille terminals for applications.
 
8548
#
 
8549
# Copyright (C) 2006-2012 by Dave Mielke <dave@mielke.cc>
 
8550
#
 
8551
# libbrlapi comes with ABSOLUTELY NO WARRANTY.
 
8552
#
 
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.
 
8557
#
 
8558
# Web Page: http://mielke.cc/brltty/
 
8559
#
 
8560
# This software is maintained by Dave Mielke <dave@mielke.cc>.
 
8561
###############################################################################
 
8562
 
 
8563
 
 
8564
 
 
8565
      LISP_OK=true
 
8566
 
 
8567
 
 
8568
      if "${LISP_OK}"
 
8569
      then
 
8570
         api_bindings="${api_bindings} Lisp"
 
8571
      else
 
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;}
 
8574
      fi
 
8575
 
 
8576
 
 
8577
   else
 
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; }; }
 
8581
   fi
 
8582
fi
 
8583
      # Check whether --enable-ocaml-bindings was given.
 
8584
if test "${enable_ocaml_bindings+set}" = set; then
 
8585
  enableval=$enable_ocaml_bindings;
 
8586
else
 
8587
  enableval="yes"
 
8588
fi
 
8589
 
 
8590
 
 
8591
brltty_enabled_ocaml_bindings="${enableval}"
 
8592
brltty_summary_lines="${brltty_summary_lines}
 
8593
   ocaml-bindings: ${brltty_enabled_ocaml_bindings}"
7839
8594
 
7840
8595
if test "${enableval}" = "no"
7841
8596
then
7932
8687
if test "$OCAMLC" = no ; then
7933
8688
    { $as_echo "$as_me:$LINENO: WARNING: Cannot find ocamlc." >&5
7934
8689
$as_echo "$as_me: WARNING: Cannot find ocamlc." >&2;}
7935
 
    CAML_OK=false
 
8690
    OCAML_OK=false
7936
8691
else
7937
8692
    # checking for ocamlmklib
7938
8693
    # Extract the first word of "ocamlmklib", so it can be a program name with args.
7976
8731
    if test "$OCAMLMKLIB" = no ; then
7977
8732
        { $as_echo "$as_me:$LINENO: WARNING: Cannot find ocamlmklib." >&5
7978
8733
$as_echo "$as_me: WARNING: Cannot find ocamlmklib." >&2;}
7979
 
        CAML_OK=false
 
8734
        OCAML_OK=false
7980
8735
    else
7981
 
        CAML_OK=true
 
8736
        OCAML_OK=true
7982
8737
        # we extract Ocaml version number and library path
7983
8738
        OCAMLVERSION=`$OCAMLC -version`
7984
8739
        { $as_echo "$as_me:$LINENO: OCaml version is $OCAMLVERSION" >&5
8249
9004
 
8250
9005
 
8251
9006
 
8252
 
      if "${CAML_OK}"
8253
 
      then
8254
 
         api_bindings="${api_bindings} Caml"
8255
 
      else
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;}
8258
 
      fi
8259
 
 
8260
 
 
8261
 
   else
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; }; }
8265
 
   fi
8266
 
fi
8267
 
      # Check whether --enable-java-bindings was given.
8268
 
if test "${enable_java_bindings+set}" = set; then
8269
 
  enableval=$enable_java_bindings;
8270
 
else
8271
 
  enableval="yes"
8272
 
fi
8273
 
 
8274
 
 
8275
 
brltty_enabled_java_bindings="${enableval}"
8276
 
brltty_summary_lines="${brltty_summary_lines}
8277
 
   java-bindings: ${brltty_enabled_java_bindings}"
8278
 
 
8279
 
if test "${enableval}" = "no"
8280
 
then
8281
 
   :
8282
 
else
8283
 
   if test "${enableval}" = "yes"
8284
 
   then
8285
 
      brltty_ok=true
8286
 
   else
8287
 
      brltty_ok=false
8288
 
   fi
8289
 
 
8290
 
   if "${brltty_ok}"
8291
 
   then
8292
 
 
8293
 
      ###############################################################################
8294
 
# libbrlapi - A library providing access to braille terminals for applications.
8295
 
#
8296
 
# Copyright (C) 2006-2011 by
8297
 
#   Samuel Thibault <Samuel.Thibault@ens-lyon.org>
8298
 
#   Sébastien Hinderer <Sebastien.Hinderer@ens-lyon.org>
8299
 
#
8300
 
# libbrlapi comes with ABSOLUTELY NO WARRANTY.
8301
 
#
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.
8306
 
#
8307
 
# Web Page: http://mielke.cc/brltty/
8308
 
#
8309
 
# This software is maintained by Dave Mielke <dave@mielke.cc>.
8310
 
###############################################################################
8311
 
 
8312
 
 
8313
 
 
8314
 
 
8315
 
 
8316
 
 
8317
 
 
8318
 
      if test -n "${JAVA_HOME}"
8319
 
then
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
8326
 
else
8327
 
  case $JAVAC_PATH in
8328
 
  [\\/]* | ?:[\\/]*)
8329
 
  ac_cv_path_JAVAC_PATH="$JAVAC_PATH" # Let the user override the test with a path.
8330
 
  ;;
8331
 
  *)
8332
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333
 
for as_dir in "${JAVA_HOME}/bin"
8334
 
do
8335
 
  IFS=$as_save_IFS
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
8341
 
    break 2
8342
 
  fi
8343
 
done
8344
 
done
8345
 
IFS=$as_save_IFS
8346
 
 
8347
 
  ;;
8348
 
esac
8349
 
fi
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; }
8354
 
else
8355
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
8356
 
$as_echo "no" >&6; }
8357
 
fi
8358
 
 
8359
 
 
8360
 
if test -n "${JAVAC_PATH}"
8361
 
then
8362
 
   JAVAC_NAME="javac"
8363
 
fi
8364
 
else
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
8371
 
else
8372
 
  case $JAVAC_PATH in
8373
 
  [\\/]* | ?:[\\/]*)
8374
 
  ac_cv_path_JAVAC_PATH="$JAVAC_PATH" # Let the user override the test with a path.
8375
 
  ;;
8376
 
  *)
8377
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378
 
for as_dir in $PATH
8379
 
do
8380
 
  IFS=$as_save_IFS
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
8386
 
    break 2
8387
 
  fi
8388
 
done
8389
 
done
8390
 
IFS=$as_save_IFS
8391
 
 
8392
 
  ;;
8393
 
esac
8394
 
fi
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; }
8399
 
else
8400
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
8401
 
$as_echo "no" >&6; }
8402
 
fi
8403
 
 
8404
 
 
8405
 
if test -n "${JAVAC_PATH}"
8406
 
then
8407
 
   JAVAC_NAME="javac"
8408
 
else
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
8415
 
else
8416
 
  case $JAVAC_PATH in
8417
 
  [\\/]* | ?:[\\/]*)
8418
 
  ac_cv_path_JAVAC_PATH="$JAVAC_PATH" # Let the user override the test with a path.
8419
 
  ;;
8420
 
  *)
8421
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422
 
for as_dir in /usr/java/bin /usr/java/jdk*/bin
8423
 
do
8424
 
  IFS=$as_save_IFS
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
8430
 
    break 2
8431
 
  fi
8432
 
done
8433
 
done
8434
 
IFS=$as_save_IFS
8435
 
 
8436
 
  ;;
8437
 
esac
8438
 
fi
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; }
8443
 
else
8444
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
8445
 
$as_echo "no" >&6; }
8446
 
fi
8447
 
 
8448
 
 
8449
 
if test -n "${JAVAC_PATH}"
8450
 
then
8451
 
   JAVAC_NAME="javac"
8452
 
else
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
8459
 
else
8460
 
  case $JAVAC_PATH in
8461
 
  [\\/]* | ?:[\\/]*)
8462
 
  ac_cv_path_JAVAC_PATH="$JAVAC_PATH" # Let the user override the test with a path.
8463
 
  ;;
8464
 
  *)
8465
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466
 
for as_dir in $PATH
8467
 
do
8468
 
  IFS=$as_save_IFS
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
8474
 
    break 2
8475
 
  fi
8476
 
done
8477
 
done
8478
 
IFS=$as_save_IFS
8479
 
 
8480
 
  ;;
8481
 
esac
8482
 
fi
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; }
8487
 
else
8488
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
8489
 
$as_echo "no" >&6; }
8490
 
fi
8491
 
 
8492
 
 
8493
 
if test -n "${JAVAC_PATH}"
8494
 
then
8495
 
   JAVAC_NAME="gcj"
8496
 
fi
8497
 
 
8498
 
fi
8499
 
 
8500
 
fi
8501
 
fi
8502
 
 
8503
 
JAVA_OK=false
8504
 
if test -n "${JAVAC_PATH}"
8505
 
then
8506
 
   { $as_echo "$as_me:$LINENO: Java compiler is ${JAVAC_PATH}" >&5
8507
 
$as_echo "$as_me: Java compiler is ${JAVAC_PATH}" >&6;}
8508
 
   JAVA_OK=true
8509
 
 
8510
 
   JAVA_ENCODING="UTF-8"
8511
 
   case "${JAVAC_NAME}"
8512
 
   in
8513
 
      javac) JAVAC_OPTIONS="-encoding ${JAVA_ENCODING}";;
8514
 
      gcj)   JAVAC_OPTIONS="-C --encoding=${JAVA_ENCODING}";;
8515
 
      *)     JAVAC_OPTIONS="";;
8516
 
   esac
8517
 
   JAVAC="${JAVAC_PATH} ${JAVAC_OPTIONS}"
8518
 
 
8519
 
 
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8527
 
            s//\1/
8528
 
            q
8529
 
          }
8530
 
          /^X\(\/\/\)[^/].*/{
8531
 
            s//\1/
8532
 
            q
8533
 
          }
8534
 
          /^X\(\/\/\)$/{
8535
 
            s//\1/
8536
 
            q
8537
 
          }
8538
 
          /^X\(\/\).*/{
8539
 
            s//\1/
8540
 
            q
8541
 
          }
8542
 
          s/.*/./; q'`
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8550
 
            s//\1/
8551
 
            q
8552
 
          }
8553
 
          /^X\(\/\/\)[^/].*/{
8554
 
            s//\1/
8555
 
            q
8556
 
          }
8557
 
          /^X\(\/\/\)$/{
8558
 
            s//\1/
8559
 
            q
8560
 
          }
8561
 
          /^X\(\/\).*/{
8562
 
            s//\1/
8563
 
            q
8564
 
          }
8565
 
          s/.*/./; q'`
8566
 
 
8567
 
   for ac_prog in javadoc gjdoc
8568
 
do
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
8575
 
else
8576
 
  if test -n "$JAVADOC_NAME"; then
8577
 
  ac_cv_prog_JAVADOC_NAME="$JAVADOC_NAME" # Let the user override the test.
8578
 
else
8579
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580
 
for as_dir in "${JAVA_BIN}"
8581
 
do
8582
 
  IFS=$as_save_IFS
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
8588
 
    break 2
8589
 
  fi
8590
 
done
8591
 
done
8592
 
IFS=$as_save_IFS
8593
 
 
8594
 
fi
8595
 
fi
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; }
8600
 
else
8601
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
8602
 
$as_echo "no" >&6; }
8603
 
fi
8604
 
 
8605
 
 
8606
 
  test -n "$JAVADOC_NAME" && break
8607
 
done
8608
 
 
8609
 
   if test -n "${JAVADOC_NAME}"
8610
 
   then
8611
 
      JAVADOC_PATH="${JAVA_BIN}/${JAVADOC_NAME}"
8612
 
   else
8613
 
      JAVADOC_PATH=":"
8614
 
   fi
8615
 
   JAVADOC="${JAVADOC_PATH} -encoding ${JAVA_ENCODING}"
8616
 
 
8617
 
 
8618
 
   for ac_prog in jar gjar
8619
 
do
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
8626
 
else
8627
 
  if test -n "$JAR_NAME"; then
8628
 
  ac_cv_prog_JAR_NAME="$JAR_NAME" # Let the user override the test.
8629
 
else
8630
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631
 
for as_dir in "${JAVA_BIN}"
8632
 
do
8633
 
  IFS=$as_save_IFS
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
8639
 
    break 2
8640
 
  fi
8641
 
done
8642
 
done
8643
 
IFS=$as_save_IFS
8644
 
 
8645
 
fi
8646
 
fi
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; }
8651
 
else
8652
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
8653
 
$as_echo "no" >&6; }
8654
 
fi
8655
 
 
8656
 
 
8657
 
  test -n "$JAR_NAME" && break
8658
 
done
8659
 
test -n "$JAR_NAME" || JAR_NAME="JAR_NOT_FOUND_BY_CONFIGURE"
8660
 
 
8661
 
   JAR="${JAVA_BIN}/${JAR_NAME}"
8662
 
 
8663
 
   JAVA_JAR_DIR=""
8664
 
for directory in /usr/share/java
8665
 
do
8666
 
   test -d "${directory}" && {
8667
 
      JAVA_JAR_DIR="${directory}"
8668
 
      break
8669
 
   }
8670
 
done
8671
 
 
8672
 
if test -n "${JAVA_JAR_DIR}"
8673
 
then
8674
 
   JAVA_JAR="yes"
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;}
8677
 
else
8678
 
   JAVA_JAR="no"
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;}
8681
 
fi
8682
 
 
8683
 
 
8684
 
 
8685
 
 
8686
 
 
8687
 
   JAVA_JNI_INC="${JAVA_ROOT}/include"
8688
 
   JAVA_JNI_HDR="jni.h"
8689
 
   JAVA_JNI_FLAGS=""
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
8696
 
fi
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; }
8701
 
else
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
8706
 
/* confdefs.h.  */
8707
 
_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}>
8713
 
_ACEOF
8714
 
rm -f conftest.$ac_objext
8715
 
if { (ac_try="$ac_compile"
8716
 
case "(($ac_try" in
8717
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8718
 
  *) ac_try_echo=$ac_try;;
8719
 
esac
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
8723
 
  ac_status=$?
8724
 
  grep -v '^ *+' conftest.er1 >conftest.err
8725
 
  rm -f conftest.er1
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
8733
 
else
8734
 
  $as_echo "$as_me: failed program was:" >&5
8735
 
sed 's/^/| /' conftest.$ac_ext >&5
8736
 
 
8737
 
        ac_header_compiler=no
8738
 
fi
8739
 
 
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; }
8743
 
 
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
8748
 
/* confdefs.h.  */
8749
 
_ACEOF
8750
 
cat confdefs.h >>conftest.$ac_ext
8751
 
cat >>conftest.$ac_ext <<_ACEOF
8752
 
/* end confdefs.h.  */
8753
 
#include <${JAVA_JNI_HDR}>
8754
 
_ACEOF
8755
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
8756
 
case "(($ac_try" in
8757
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758
 
  *) ac_try_echo=$ac_try;;
8759
 
esac
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
8763
 
  ac_status=$?
8764
 
  grep -v '^ *+' conftest.er1 >conftest.err
8765
 
  rm -f conftest.er1
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
8771
 
       }; then
8772
 
  ac_header_preproc=yes
8773
 
else
8774
 
  $as_echo "$as_me: failed program was:" >&5
8775
 
sed 's/^/| /' conftest.$ac_ext >&5
8776
 
 
8777
 
  ac_header_preproc=no
8778
 
fi
8779
 
 
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; }
8783
 
 
8784
 
# So?  What about this header?
8785
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8786
 
  yes:no: )
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
8792
 
    ;;
8793
 
  no: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;}
8806
 
    ( cat <<\_ASBOX
8807
 
## --------------------------------------- ##
8808
 
## Report this to http://mielke.cc/brltty/ ##
8809
 
## --------------------------------------- ##
8810
 
_ASBOX
8811
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
8812
 
    ;;
8813
 
esac
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
8818
 
else
8819
 
  eval "$as_ac_Header=\$ac_header_preproc"
8820
 
fi
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; }
8825
 
 
8826
 
fi
8827
 
as_val=`eval 'as_val=${'$as_ac_Header'}
8828
 
                 $as_echo "$as_val"'`
8829
 
   if test "x$as_val" = x""yes; then
8830
 
  :
8831
 
else
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
8837
 
else
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"
8844
 
else
8845
 
  eval "$as_ac_File=no"
8846
 
fi
8847
 
fi
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}"
8856
 
else
8857
 
  JAVA_OK=false
8858
 
fi
8859
 
 
8860
 
fi
8861
 
 
8862
 
 
8863
 
 
8864
 
 
8865
 
 
8866
 
   JAVA_JNI_DIR=""
8867
 
for directory in /usr/lib/java /usr/lib/jni
8868
 
do
8869
 
   test -d "${directory}" && {
8870
 
      JAVA_JNI_DIR="${directory}"
8871
 
      break
8872
 
   }
8873
 
done
8874
 
 
8875
 
if test -n "${JAVA_JNI_DIR}"
8876
 
then
8877
 
   JAVA_JNI="yes"
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;}
8880
 
else
8881
 
   JAVA_JNI="no"
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;}
8884
 
fi
8885
 
 
8886
 
 
8887
 
 
8888
 
 
8889
 
else
8890
 
   { $as_echo "$as_me:$LINENO: WARNING: Java compiler not found" >&5
8891
 
$as_echo "$as_me: WARNING: Java compiler not found" >&2;}
8892
 
fi
8893
 
 
8894
 
 
8895
 
 
8896
 
      if "${JAVA_OK}"
8897
 
      then
8898
 
         api_bindings="${api_bindings} Java"
8899
 
      else
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;}
8902
 
      fi
8903
 
 
8904
 
 
8905
 
   else
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; }; }
8909
 
   fi
8910
 
fi
8911
 
      # Check whether --enable-lisp-bindings was given.
8912
 
if test "${enable_lisp_bindings+set}" = set; then
8913
 
  enableval=$enable_lisp_bindings;
8914
 
else
8915
 
  enableval="yes"
8916
 
fi
8917
 
 
8918
 
 
8919
 
brltty_enabled_lisp_bindings="${enableval}"
8920
 
brltty_summary_lines="${brltty_summary_lines}
8921
 
   lisp-bindings: ${brltty_enabled_lisp_bindings}"
8922
 
 
8923
 
if test "${enableval}" = "no"
8924
 
then
8925
 
   :
8926
 
else
8927
 
   if test "${enableval}" = "yes"
8928
 
   then
8929
 
      brltty_ok=true
8930
 
   else
8931
 
      brltty_ok=false
8932
 
   fi
8933
 
 
8934
 
   if "${brltty_ok}"
8935
 
   then
8936
 
 
8937
 
      ###############################################################################
8938
 
# libbrlapi - A library providing access to braille terminals for applications.
8939
 
#
8940
 
# Copyright (C) 2006-2011 by Dave Mielke <dave@mielke.cc>
8941
 
#
8942
 
# libbrlapi comes with ABSOLUTELY NO WARRANTY.
8943
 
#
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.
8948
 
#
8949
 
# Web Page: http://mielke.cc/brltty/
8950
 
#
8951
 
# This software is maintained by Dave Mielke <dave@mielke.cc>.
8952
 
###############################################################################
8953
 
 
8954
 
 
8955
 
 
8956
 
      LISP_OK=true
8957
 
 
8958
 
 
8959
 
      if "${LISP_OK}"
8960
 
      then
8961
 
         api_bindings="${api_bindings} Lisp"
8962
 
      else
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;}
8965
 
      fi
8966
 
 
8967
 
 
8968
 
   else
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;}
 
9007
      if "${OCAML_OK}"
 
9008
      then
 
9009
         api_bindings="${api_bindings} OCaml"
 
9010
      else
 
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;}
 
9013
      fi
 
9014
 
 
9015
 
 
9016
   else
 
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; }; }
8972
9020
   fi
8973
9021
fi
9000
9048
      ###############################################################################
9001
9049
# libbrlapi - A library providing access to braille terminals for applications.
9002
9050
#
9003
 
# Copyright (C) 2005-2011 by
 
9051
# Copyright (C) 2005-2012 by
9004
9052
#   Alexis Robert <alexissoft@free.fr>
9005
9053
#   Samuel Thibault <Samuel.Thibault@ens-lyon.org>
9006
9054
#
9264
9312
      ###############################################################################
9265
9313
# libbrlapi - A library providing access to braille terminals for applications.
9266
9314
#
9267
 
# Copyright (C) 2006-2011 by Dave Mielke <dave@mielke.cc>
 
9315
# Copyright (C) 2006-2012 by Dave Mielke <dave@mielke.cc>
9268
9316
#
9269
9317
# libbrlapi comes with ABSOLUTELY NO WARRANTY.
9270
9318
#
9972
10020
fi
9973
10021
 
9974
10022
test -n "${brltty_package_curses}" && {
9975
 
   brltty_uc="`echo "${brltty_package_curses}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`"
 
10023
   brltty_uc=`echo "${brltty_package_curses}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
9976
10024
   cat >>confdefs.h <<_ACEOF
9977
10025
#define HAVE_PKG_${brltty_uc} 1
9978
10026
_ACEOF
10870
10918
fi
10871
10919
 
10872
10920
test -n "${brltty_package_gui_toolkit}" && {
10873
 
   brltty_uc="`echo "${brltty_package_gui_toolkit}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`"
 
10921
   brltty_uc=`echo "${brltty_package_gui_toolkit}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
10874
10922
   cat >>confdefs.h <<_ACEOF
10875
10923
#define HAVE_PKG_${brltty_uc} 1
10876
10924
_ACEOF
10911
10959
 
10912
10960
 
10913
10961
 
10914
 
 
10915
 
 
10916
 
for ac_header in alloca.h getopt.h glob.h regex.h syslog.h
 
10962
for ac_func in time gettimeofday nanosleep
 
10963
do
 
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
 
10969
else
 
10970
  cat >conftest.$ac_ext <<_ACEOF
 
10971
/* confdefs.h.  */
 
10972
_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
 
10979
 
 
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.  */
 
10984
 
 
10985
#ifdef __STDC__
 
10986
# include <limits.h>
 
10987
#else
 
10988
# include <assert.h>
 
10989
#endif
 
10990
 
 
10991
#undef $ac_func
 
10992
 
 
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.  */
 
10996
#ifdef __cplusplus
 
10997
extern "C"
 
10998
#endif
 
10999
char $ac_func ();
 
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
 
11004
choke me
 
11005
#endif
 
11006
 
 
11007
int
 
11008
main ()
 
11009
{
 
11010
return $ac_func ();
 
11011
  ;
 
11012
  return 0;
 
11013
}
 
11014
_ACEOF
 
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;;
 
11020
esac
 
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
 
11024
  ac_status=$?
 
11025
  grep -v '^ *+' conftest.er1 >conftest.err
 
11026
  rm -f conftest.er1
 
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
 
11035
       }; then
 
11036
  eval "$as_ac_var=yes"
 
11037
else
 
11038
  $as_echo "$as_me: failed program was:" >&5
 
11039
sed 's/^/| /' conftest.$ac_ext >&5
 
11040
 
 
11041
        eval "$as_ac_var=no"
 
11042
fi
 
11043
 
 
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
 
11047
fi
 
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
 
11057
_ACEOF
 
11058
 
 
11059
fi
 
11060
done
 
11061
 
 
11062
 
 
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
 
11067
else
 
11068
  cat >conftest.$ac_ext <<_ACEOF
 
11069
/* confdefs.h.  */
 
11070
_ACEOF
 
11071
cat confdefs.h >>conftest.$ac_ext
 
11072
cat >>conftest.$ac_ext <<_ACEOF
 
11073
/* end confdefs.h.  */
 
11074
 
 
11075
#include <time.h>
 
11076
 
 
11077
 
 
11078
int
 
11079
main ()
 
11080
{
 
11081
#ifndef clock_gettime
 
11082
  (void) clock_gettime;
 
11083
#endif
 
11084
 
 
11085
  ;
 
11086
  return 0;
 
11087
}
 
11088
_ACEOF
 
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;;
 
11094
esac
 
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
 
11098
  ac_status=$?
 
11099
  grep -v '^ *+' conftest.er1 >conftest.err
 
11100
  rm -f conftest.er1
 
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
 
11108
else
 
11109
  $as_echo "$as_me: failed program was:" >&5
 
11110
sed 's/^/| /' conftest.$ac_ext >&5
 
11111
 
 
11112
        ac_cv_have_decl_clock_gettime=no
 
11113
fi
 
11114
 
 
11115
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11116
fi
 
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
 
11124
else
 
11125
  ac_func_search_save_LIBS=$LIBS
 
11126
cat >conftest.$ac_ext <<_ACEOF
 
11127
/* confdefs.h.  */
 
11128
_ACEOF
 
11129
cat confdefs.h >>conftest.$ac_ext
 
11130
cat >>conftest.$ac_ext <<_ACEOF
 
11131
/* end confdefs.h.  */
 
11132
 
 
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.  */
 
11136
#ifdef __cplusplus
 
11137
extern "C"
 
11138
#endif
 
11139
char clock_gettime ();
 
11140
int
 
11141
main ()
 
11142
{
 
11143
return clock_gettime ();
 
11144
  ;
 
11145
  return 0;
 
11146
}
 
11147
_ACEOF
 
11148
for ac_lib in '' rt; do
 
11149
  if test -z "$ac_lib"; then
 
11150
    ac_res="none required"
 
11151
  else
 
11152
    ac_res=-l$ac_lib
 
11153
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11154
  fi
 
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;;
 
11160
esac
 
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
 
11164
  ac_status=$?
 
11165
  grep -v '^ *+' conftest.er1 >conftest.err
 
11166
  rm -f conftest.er1
 
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
 
11175
       }; then
 
11176
  ac_cv_search_clock_gettime=$ac_res
 
11177
else
 
11178
  $as_echo "$as_me: failed program was:" >&5
 
11179
sed 's/^/| /' conftest.$ac_ext >&5
 
11180
 
 
11181
 
 
11182
fi
 
11183
 
 
11184
rm -rf conftest.dSYM
 
11185
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11186
      conftest$ac_exeext
 
11187
  if test "${ac_cv_search_clock_gettime+set}" = set; then
 
11188
  break
 
11189
fi
 
11190
done
 
11191
if test "${ac_cv_search_clock_gettime+set}" = set; then
 
11192
  :
 
11193
else
 
11194
  ac_cv_search_clock_gettime=no
 
11195
fi
 
11196
rm conftest.$ac_ext
 
11197
LIBS=$ac_func_search_save_LIBS
 
11198
fi
 
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%'`
 
11205
 
 
11206
cat >>confdefs.h <<_ACEOF
 
11207
#define ${brltty_define} 1
 
11208
_ACEOF
 
11209
 
 
11210
 
 
11211
fi
 
11212
 
 
11213
 
 
11214
fi
 
11215
 
 
11216
 
 
11217
 
 
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
 
11222
else
 
11223
  cat >conftest.$ac_ext <<_ACEOF
 
11224
/* confdefs.h.  */
 
11225
_ACEOF
 
11226
cat confdefs.h >>conftest.$ac_ext
 
11227
cat >>conftest.$ac_ext <<_ACEOF
 
11228
/* end confdefs.h.  */
 
11229
#include <time.h>
 
11230
 
 
11231
 
 
11232
int
 
11233
main ()
 
11234
{
 
11235
#ifndef localtime_r
 
11236
  (void) localtime_r;
 
11237
#endif
 
11238
 
 
11239
  ;
 
11240
  return 0;
 
11241
}
 
11242
_ACEOF
 
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;;
 
11248
esac
 
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
 
11252
  ac_status=$?
 
11253
  grep -v '^ *+' conftest.er1 >conftest.err
 
11254
  rm -f conftest.er1
 
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
 
11262
else
 
11263
  $as_echo "$as_me: failed program was:" >&5
 
11264
sed 's/^/| /' conftest.$ac_ext >&5
 
11265
 
 
11266
        ac_cv_have_decl_localtime_r=no
 
11267
fi
 
11268
 
 
11269
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11270
fi
 
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
 
11274
 
 
11275
cat >>confdefs.h <<_ACEOF
 
11276
#define HAVE_DECL_LOCALTIME_R 1
 
11277
_ACEOF
 
11278
 
 
11279
 
 
11280
else
 
11281
  cat >>confdefs.h <<_ACEOF
 
11282
#define HAVE_DECL_LOCALTIME_R 0
 
11283
_ACEOF
 
11284
 
 
11285
 
 
11286
fi
 
11287
 
 
11288
 
 
11289
 
 
11290
 
 
11291
 
 
11292
 
 
11293
for ac_header in sys/poll.h sys/select.h sys/wait.h
 
11294
do
 
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
 
11301
fi
 
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; }
 
11306
else
 
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
 
11311
/* confdefs.h.  */
 
11312
_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>
 
11318
_ACEOF
 
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;;
 
11324
esac
 
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
 
11328
  ac_status=$?
 
11329
  grep -v '^ *+' conftest.er1 >conftest.err
 
11330
  rm -f conftest.er1
 
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
 
11338
else
 
11339
  $as_echo "$as_me: failed program was:" >&5
 
11340
sed 's/^/| /' conftest.$ac_ext >&5
 
11341
 
 
11342
        ac_header_compiler=no
 
11343
fi
 
11344
 
 
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; }
 
11348
 
 
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
 
11353
/* confdefs.h.  */
 
11354
_ACEOF
 
11355
cat confdefs.h >>conftest.$ac_ext
 
11356
cat >>conftest.$ac_ext <<_ACEOF
 
11357
/* end confdefs.h.  */
 
11358
#include <$ac_header>
 
11359
_ACEOF
 
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;;
 
11364
esac
 
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
 
11368
  ac_status=$?
 
11369
  grep -v '^ *+' conftest.er1 >conftest.err
 
11370
  rm -f conftest.er1
 
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
 
11376
       }; then
 
11377
  ac_header_preproc=yes
 
11378
else
 
11379
  $as_echo "$as_me: failed program was:" >&5
 
11380
sed 's/^/| /' conftest.$ac_ext >&5
 
11381
 
 
11382
  ac_header_preproc=no
 
11383
fi
 
11384
 
 
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; }
 
11388
 
 
11389
# So?  What about this header?
 
11390
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11391
  yes:no: )
 
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
 
11397
    ;;
 
11398
  no: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;}
 
11411
    ( cat <<\_ASBOX
 
11412
## --------------------------------------- ##
 
11413
## Report this to http://mielke.cc/brltty/ ##
 
11414
## --------------------------------------- ##
 
11415
_ASBOX
 
11416
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
11417
    ;;
 
11418
esac
 
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
 
11423
else
 
11424
  eval "$as_ac_Header=\$ac_header_preproc"
 
11425
fi
 
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; }
 
11430
 
 
11431
fi
 
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
 
11437
_ACEOF
 
11438
 
 
11439
fi
 
11440
 
 
11441
done
 
11442
 
 
11443
 
 
11444
for ac_func in select
 
11445
do
 
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
 
11451
else
 
11452
  cat >conftest.$ac_ext <<_ACEOF
 
11453
/* confdefs.h.  */
 
11454
_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
 
11461
 
 
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.  */
 
11466
 
 
11467
#ifdef __STDC__
 
11468
# include <limits.h>
 
11469
#else
 
11470
# include <assert.h>
 
11471
#endif
 
11472
 
 
11473
#undef $ac_func
 
11474
 
 
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.  */
 
11478
#ifdef __cplusplus
 
11479
extern "C"
 
11480
#endif
 
11481
char $ac_func ();
 
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
 
11486
choke me
 
11487
#endif
 
11488
 
 
11489
int
 
11490
main ()
 
11491
{
 
11492
return $ac_func ();
 
11493
  ;
 
11494
  return 0;
 
11495
}
 
11496
_ACEOF
 
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;;
 
11502
esac
 
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
 
11506
  ac_status=$?
 
11507
  grep -v '^ *+' conftest.er1 >conftest.err
 
11508
  rm -f conftest.er1
 
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
 
11517
       }; then
 
11518
  eval "$as_ac_var=yes"
 
11519
else
 
11520
  $as_echo "$as_me: failed program was:" >&5
 
11521
sed 's/^/| /' conftest.$ac_ext >&5
 
11522
 
 
11523
        eval "$as_ac_var=no"
 
11524
fi
 
11525
 
 
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
 
11529
fi
 
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
 
11539
_ACEOF
 
11540
 
 
11541
fi
 
11542
done
 
11543
 
 
11544
 
 
11545
 
 
11546
for ac_header in signal.h
 
11547
do
 
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
 
11554
fi
 
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; }
 
11559
else
 
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
 
11564
/* confdefs.h.  */
 
11565
_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>
 
11571
_ACEOF
 
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;;
 
11577
esac
 
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
 
11581
  ac_status=$?
 
11582
  grep -v '^ *+' conftest.er1 >conftest.err
 
11583
  rm -f conftest.er1
 
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
 
11591
else
 
11592
  $as_echo "$as_me: failed program was:" >&5
 
11593
sed 's/^/| /' conftest.$ac_ext >&5
 
11594
 
 
11595
        ac_header_compiler=no
 
11596
fi
 
11597
 
 
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; }
 
11601
 
 
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
 
11606
/* confdefs.h.  */
 
11607
_ACEOF
 
11608
cat confdefs.h >>conftest.$ac_ext
 
11609
cat >>conftest.$ac_ext <<_ACEOF
 
11610
/* end confdefs.h.  */
 
11611
#include <$ac_header>
 
11612
_ACEOF
 
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;;
 
11617
esac
 
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
 
11621
  ac_status=$?
 
11622
  grep -v '^ *+' conftest.er1 >conftest.err
 
11623
  rm -f conftest.er1
 
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
 
11629
       }; then
 
11630
  ac_header_preproc=yes
 
11631
else
 
11632
  $as_echo "$as_me: failed program was:" >&5
 
11633
sed 's/^/| /' conftest.$ac_ext >&5
 
11634
 
 
11635
  ac_header_preproc=no
 
11636
fi
 
11637
 
 
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; }
 
11641
 
 
11642
# So?  What about this header?
 
11643
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11644
  yes:no: )
 
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
 
11650
    ;;
 
11651
  no: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;}
 
11664
    ( cat <<\_ASBOX
 
11665
## --------------------------------------- ##
 
11666
## Report this to http://mielke.cc/brltty/ ##
 
11667
## --------------------------------------- ##
 
11668
_ASBOX
 
11669
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
11670
    ;;
 
11671
esac
 
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
 
11676
else
 
11677
  eval "$as_ac_Header=\$ac_header_preproc"
 
11678
fi
 
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; }
 
11683
 
 
11684
fi
 
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
 
11690
_ACEOF
 
11691
 
 
11692
fi
 
11693
 
 
11694
done
 
11695
 
 
11696
 
 
11697
for ac_func in sigaction
 
11698
do
 
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
 
11704
else
 
11705
  cat >conftest.$ac_ext <<_ACEOF
 
11706
/* confdefs.h.  */
 
11707
_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
 
11714
 
 
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.  */
 
11719
 
 
11720
#ifdef __STDC__
 
11721
# include <limits.h>
 
11722
#else
 
11723
# include <assert.h>
 
11724
#endif
 
11725
 
 
11726
#undef $ac_func
 
11727
 
 
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.  */
 
11731
#ifdef __cplusplus
 
11732
extern "C"
 
11733
#endif
 
11734
char $ac_func ();
 
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
 
11739
choke me
 
11740
#endif
 
11741
 
 
11742
int
 
11743
main ()
 
11744
{
 
11745
return $ac_func ();
 
11746
  ;
 
11747
  return 0;
 
11748
}
 
11749
_ACEOF
 
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;;
 
11755
esac
 
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
 
11759
  ac_status=$?
 
11760
  grep -v '^ *+' conftest.er1 >conftest.err
 
11761
  rm -f conftest.er1
 
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
 
11770
       }; then
 
11771
  eval "$as_ac_var=yes"
 
11772
else
 
11773
  $as_echo "$as_me: failed program was:" >&5
 
11774
sed 's/^/| /' conftest.$ac_ext >&5
 
11775
 
 
11776
        eval "$as_ac_var=no"
 
11777
fi
 
11778
 
 
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
 
11782
fi
 
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
 
11792
_ACEOF
 
11793
 
 
11794
fi
 
11795
done
 
11796
 
 
11797
 
 
11798
 
 
11799
 
 
11800
 
 
11801
 
 
11802
 
 
11803
 
 
11804
for ac_header in alloca.h getopt.h glob.h langinfo.h regex.h syslog.h
10917
11805
do
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
11216
12104
 
11217
12105
 
11218
12106
 
11219
 
 
11220
 
for ac_header in sys/poll.h sys/select.h sys/wait.h
11221
 
do
11222
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11223
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11224
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11225
 
$as_echo_n "checking for $ac_header... " >&6; }
11226
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11227
 
  $as_echo_n "(cached) " >&6
11228
 
fi
11229
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
11230
 
                 $as_echo "$as_val"'`
11231
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11232
 
$as_echo "$ac_res" >&6; }
11233
 
else
11234
 
  # Is the header compilable?
11235
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11236
 
$as_echo_n "checking $ac_header usability... " >&6; }
11237
 
cat >conftest.$ac_ext <<_ACEOF
11238
 
/* confdefs.h.  */
11239
 
_ACEOF
11240
 
cat confdefs.h >>conftest.$ac_ext
11241
 
cat >>conftest.$ac_ext <<_ACEOF
11242
 
/* end confdefs.h.  */
11243
 
$ac_includes_default
11244
 
#include <$ac_header>
11245
 
_ACEOF
11246
 
rm -f conftest.$ac_objext
11247
 
if { (ac_try="$ac_compile"
11248
 
case "(($ac_try" in
11249
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250
 
  *) ac_try_echo=$ac_try;;
11251
 
esac
11252
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11253
 
$as_echo "$ac_try_echo") >&5
11254
 
  (eval "$ac_compile") 2>conftest.er1
11255
 
  ac_status=$?
11256
 
  grep -v '^ *+' conftest.er1 >conftest.err
11257
 
  rm -f conftest.er1
11258
 
  cat conftest.err >&5
11259
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260
 
  (exit $ac_status); } && {
11261
 
         test -z "$ac_c_werror_flag" ||
11262
 
         test ! -s conftest.err
11263
 
       } && test -s conftest.$ac_objext; then
11264
 
  ac_header_compiler=yes
11265
 
else
11266
 
  $as_echo "$as_me: failed program was:" >&5
11267
 
sed 's/^/| /' conftest.$ac_ext >&5
11268
 
 
11269
 
        ac_header_compiler=no
11270
 
fi
11271
 
 
11272
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11274
 
$as_echo "$ac_header_compiler" >&6; }
11275
 
 
11276
 
# Is the header present?
11277
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11278
 
$as_echo_n "checking $ac_header presence... " >&6; }
11279
 
cat >conftest.$ac_ext <<_ACEOF
11280
 
/* confdefs.h.  */
11281
 
_ACEOF
11282
 
cat confdefs.h >>conftest.$ac_ext
11283
 
cat >>conftest.$ac_ext <<_ACEOF
11284
 
/* end confdefs.h.  */
11285
 
#include <$ac_header>
11286
 
_ACEOF
11287
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
11288
 
case "(($ac_try" in
11289
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290
 
  *) ac_try_echo=$ac_try;;
11291
 
esac
11292
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11293
 
$as_echo "$ac_try_echo") >&5
11294
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11295
 
  ac_status=$?
11296
 
  grep -v '^ *+' conftest.er1 >conftest.err
11297
 
  rm -f conftest.er1
11298
 
  cat conftest.err >&5
11299
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300
 
  (exit $ac_status); } >/dev/null && {
11301
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11302
 
         test ! -s conftest.err
11303
 
       }; then
11304
 
  ac_header_preproc=yes
11305
 
else
11306
 
  $as_echo "$as_me: failed program was:" >&5
11307
 
sed 's/^/| /' conftest.$ac_ext >&5
11308
 
 
11309
 
  ac_header_preproc=no
11310
 
fi
11311
 
 
11312
 
rm -f conftest.err conftest.$ac_ext
11313
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11314
 
$as_echo "$ac_header_preproc" >&6; }
11315
 
 
11316
 
# So?  What about this header?
11317
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11318
 
  yes:no: )
11319
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11320
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11321
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11322
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11323
 
    ac_header_preproc=yes
11324
 
    ;;
11325
 
  no:yes:* )
11326
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11327
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11328
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11329
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11330
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11331
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11332
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11333
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11334
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11335
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11336
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11337
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11338
 
    ( cat <<\_ASBOX
11339
 
## --------------------------------------- ##
11340
 
## Report this to http://mielke.cc/brltty/ ##
11341
 
## --------------------------------------- ##
11342
 
_ASBOX
11343
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
11344
 
    ;;
11345
 
esac
11346
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11347
 
$as_echo_n "checking for $ac_header... " >&6; }
11348
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11349
 
  $as_echo_n "(cached) " >&6
11350
 
else
11351
 
  eval "$as_ac_Header=\$ac_header_preproc"
11352
 
fi
11353
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
11354
 
                 $as_echo "$as_val"'`
11355
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11356
 
$as_echo "$ac_res" >&6; }
11357
 
 
11358
 
fi
11359
 
as_val=`eval 'as_val=${'$as_ac_Header'}
11360
 
                 $as_echo "$as_val"'`
11361
 
   if test "x$as_val" = x""yes; then
11362
 
  cat >>confdefs.h <<_ACEOF
11363
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11364
 
_ACEOF
11365
 
 
11366
 
fi
11367
 
 
11368
 
done
11369
 
 
11370
 
 
11371
 
 
11372
12107
for ac_header in pwd.h grp.h
11373
12108
do
11374
12109
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11675
12410
 
11676
12411
 
11677
12412
 
11678
 
 
11679
 
for ac_header in mntent.h sys/mnttab.h
11680
 
do
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
11687
 
fi
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; }
11692
 
else
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
11697
 
/* confdefs.h.  */
11698
 
_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>
11704
 
_ACEOF
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;;
11710
 
esac
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
11714
 
  ac_status=$?
11715
 
  grep -v '^ *+' conftest.er1 >conftest.err
11716
 
  rm -f conftest.er1
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
11724
 
else
11725
 
  $as_echo "$as_me: failed program was:" >&5
11726
 
sed 's/^/| /' conftest.$ac_ext >&5
11727
 
 
11728
 
        ac_header_compiler=no
11729
 
fi
11730
 
 
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; }
11734
 
 
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
11739
 
/* confdefs.h.  */
11740
 
_ACEOF
11741
 
cat confdefs.h >>conftest.$ac_ext
11742
 
cat >>conftest.$ac_ext <<_ACEOF
11743
 
/* end confdefs.h.  */
11744
 
#include <$ac_header>
11745
 
_ACEOF
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;;
11750
 
esac
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
11754
 
  ac_status=$?
11755
 
  grep -v '^ *+' conftest.er1 >conftest.err
11756
 
  rm -f conftest.er1
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
11762
 
       }; then
11763
 
  ac_header_preproc=yes
11764
 
else
11765
 
  $as_echo "$as_me: failed program was:" >&5
11766
 
sed 's/^/| /' conftest.$ac_ext >&5
11767
 
 
11768
 
  ac_header_preproc=no
11769
 
fi
11770
 
 
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; }
11774
 
 
11775
 
# So?  What about this header?
11776
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11777
 
  yes:no: )
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
11783
 
    ;;
11784
 
  no: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;}
11797
 
    ( cat <<\_ASBOX
11798
 
## --------------------------------------- ##
11799
 
## Report this to http://mielke.cc/brltty/ ##
11800
 
## --------------------------------------- ##
11801
 
_ASBOX
11802
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
11803
 
    ;;
11804
 
esac
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
11809
 
else
11810
 
  eval "$as_ac_Header=\$ac_header_preproc"
11811
 
fi
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; }
11816
 
 
11817
 
fi
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
11823
 
_ACEOF
11824
 
 
11825
 
fi
11826
 
 
11827
 
done
11828
 
 
11829
 
 
11830
 
for ac_func in addmntent
11831
 
do
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
11837
 
else
11838
 
  cat >conftest.$ac_ext <<_ACEOF
11839
 
/* confdefs.h.  */
11840
 
_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
11847
 
 
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.  */
11852
 
 
11853
 
#ifdef __STDC__
11854
 
# include <limits.h>
11855
 
#else
11856
 
# include <assert.h>
11857
 
#endif
11858
 
 
11859
 
#undef $ac_func
11860
 
 
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.  */
11864
 
#ifdef __cplusplus
11865
 
extern "C"
11866
 
#endif
11867
 
char $ac_func ();
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
11872
 
choke me
11873
 
#endif
11874
 
 
11875
 
int
11876
 
main ()
11877
 
{
11878
 
return $ac_func ();
11879
 
  ;
11880
 
  return 0;
11881
 
}
11882
 
_ACEOF
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;;
11888
 
esac
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
11892
 
  ac_status=$?
11893
 
  grep -v '^ *+' conftest.er1 >conftest.err
11894
 
  rm -f conftest.er1
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
11903
 
       }; then
11904
 
  eval "$as_ac_var=yes"
11905
 
else
11906
 
  $as_echo "$as_me: failed program was:" >&5
11907
 
sed 's/^/| /' conftest.$ac_ext >&5
11908
 
 
11909
 
        eval "$as_ac_var=no"
11910
 
fi
11911
 
 
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
11915
 
fi
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
11925
 
_ACEOF
11926
 
 
11927
 
fi
11928
 
done
11929
 
 
11930
 
 
11931
 
 
11932
12413
for ac_header in linux/input.h
11933
12414
do
11934
12415
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12249
12730
done
12250
12731
 
12251
12732
 
12252
 
 
12253
 
for ac_func in pause sigaction
 
12733
for ac_func in pause
12254
12734
do
12255
12735
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12256
12736
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14255
14735
 
14256
14736
fi
14257
14737
 
 
14738
{ $as_echo "$as_me:$LINENO: checking if the compiler understands __attribute__((noreturn))" >&5
 
14739
$as_echo_n "checking if the compiler understands __attribute__((noreturn))... " >&6; }
 
14740
if test "${brltty_cv_c_attribute_noreturn+set}" = set; then
 
14741
  $as_echo_n "(cached) " >&6
 
14742
else
 
14743
  cat >conftest.$ac_ext <<_ACEOF
 
14744
/* confdefs.h.  */
 
14745
_ACEOF
 
14746
cat confdefs.h >>conftest.$ac_ext
 
14747
cat >>conftest.$ac_ext <<_ACEOF
 
14748
/* end confdefs.h.  */
 
14749
 
 
14750
extern void conf_attribute_noreturn(void)
 
14751
       __attribute__((noreturn));
 
14752
 
 
14753
int
 
14754
main ()
 
14755
{
 
14756
 
 
14757
  ;
 
14758
  return 0;
 
14759
}
 
14760
_ACEOF
 
14761
rm -f conftest.$ac_objext
 
14762
if { (ac_try="$ac_compile"
 
14763
case "(($ac_try" in
 
14764
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14765
  *) ac_try_echo=$ac_try;;
 
14766
esac
 
14767
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14768
$as_echo "$ac_try_echo") >&5
 
14769
  (eval "$ac_compile") 2>conftest.er1
 
14770
  ac_status=$?
 
14771
  grep -v '^ *+' conftest.er1 >conftest.err
 
14772
  rm -f conftest.er1
 
14773
  cat conftest.err >&5
 
14774
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14775
  (exit $ac_status); } && {
 
14776
         test -z "$ac_c_werror_flag" ||
 
14777
         test ! -s conftest.err
 
14778
       } && test -s conftest.$ac_objext; then
 
14779
  brltty_cv_c_attribute_noreturn=yes
 
14780
else
 
14781
  $as_echo "$as_me: failed program was:" >&5
 
14782
sed 's/^/| /' conftest.$ac_ext >&5
 
14783
 
 
14784
        brltty_cv_c_attribute_noreturn=no
 
14785
fi
 
14786
 
 
14787
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14788
fi
 
14789
{ $as_echo "$as_me:$LINENO: result: $brltty_cv_c_attribute_noreturn" >&5
 
14790
$as_echo "$brltty_cv_c_attribute_noreturn" >&6; }
 
14791
if test "${brltty_cv_c_attribute_noreturn}" = "yes"
 
14792
then
 
14793
 
 
14794
cat >>confdefs.h <<\_ACEOF
 
14795
#define HAVE_ATTRIBUTE_NORETURN 1
 
14796
_ACEOF
 
14797
 
 
14798
fi
 
14799
 
14258
14800
{ $as_echo "$as_me:$LINENO: checking if the compiler understands __attribute__((packed))" >&5
14259
14801
$as_echo_n "checking if the compiler understands __attribute__((packed))... " >&6; }
14260
14802
if test "${brltty_cv_c_attribute_packed+set}" = set; then
14407
14949
fi
14408
14950
{ $as_echo "$as_me:$LINENO: result: $brltty_cv_prog_cc_sysflags" >&5
14409
14951
$as_echo "$brltty_cv_prog_cc_sysflags" >&6; }
14410
 
SYSCFLAGS="${brltty_cv_prog_cc_sysflags}"
14411
 
 
 
14952
CPPFLAGS="${CPPFLAGS} ${brltty_cv_prog_cc_sysflags}"
14412
14953
 
14413
14954
{ $as_echo "$as_me:$LINENO: checking for c compiler shared object flags" >&5
14414
14955
$as_echo_n "checking for c compiler shared object flags... " >&6; }
14579
15120
brltty_midi_interfaces=""
14580
15121
case "${host_os}"
14581
15122
in
14582
 
   linux*|eabi*)
 
15123
   linux*)
14583
15124
      system_object="linux"
14584
15125
      brltty_pcm_interfaces=""
14585
15126
      brltty_midi_interfaces=""
14874
15415
      system_object="hpux"
14875
15416
      if test -d /opt/audio/include
14876
15417
      then
14877
 
         SYSCFLAGS="${SYSCFLAGS} -I/opt/audio/include"
 
15418
         CPPFLAGS="${CPPFLAGS} -I/opt/audio/include"
14878
15419
         LIBS="-L/opt/audio/lib -lAlib ${LIBS}"
14879
15420
 
14880
15421
cat >>confdefs.h <<\_ACEOF
14988
15529
      system_object="darwin"
14989
15530
      LIBS="-lIOKit -framework CoreFoundation -framework AudioUnit -framework AudioToolbox ${LIBS}"
14990
15531
      ;;
 
15532
   elf*)
 
15533
      system_object="grub"
 
15534
      ;;
14991
15535
   *)
14992
15536
      { { $as_echo "$as_me:$LINENO: error: no system object available for ${host_os}" >&5
14993
15537
$as_echo "$as_me: error: no system object available for ${host_os}" >&2;}
14994
15538
   { (exit 1); exit 1; }; }
14995
15539
      ;;
14996
15540
esac
14997
 
system_object="sys_${system_object}."'$O'
14998
15541
 
14999
15542
 
15000
15543
keyboard_object=""
15168
15711
   if "${brltty_ok}"
15169
15712
   then
15170
15713
      test "${#}" -gt 0 && {
15171
 
         brltty_uc="`echo "use_pcm-support_${enableval}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-%ABCDEFGHIJKLMNOPQRSTUVWXYZ_%'`"
 
15714
         brltty_uc=`echo "use_pcm-support_${enableval}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-%ABCDEFGHIJKLMNOPQRSTUVWXYZ_%'`
15172
15715
         cat >>confdefs.h <<_ACEOF
15173
15716
#define ${brltty_uc} 1
15174
15717
_ACEOF
15226
15769
   if "${brltty_ok}"
15227
15770
   then
15228
15771
      test "${#}" -gt 0 && {
15229
 
         brltty_uc="`echo "use_midi-support_${enableval}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-%ABCDEFGHIJKLMNOPQRSTUVWXYZ_%'`"
 
15772
         brltty_uc=`echo "use_midi-support_${enableval}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz-%ABCDEFGHIJKLMNOPQRSTUVWXYZ_%'`
15230
15773
         cat >>confdefs.h <<_ACEOF
15231
15774
#define ${brltty_uc} 1
15232
15775
_ACEOF
15397
15940
 
15398
15941
case "${host_os}"
15399
15942
in
15400
 
   linux*|gnu*|solaris*|openbsd*|freebsd*|kfreebsd*|netbsd*|osf*|*qnx*|cygwin*|mingw*|eabi*)
15401
 
      brltty_uc="`echo "dlopen" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`"
 
15943
   linux*|gnu*|solaris*|openbsd*|freebsd*|kfreebsd*|netbsd*|osf*|*qnx*|cygwin*|mingw*)
 
15944
      brltty_uc=`echo "dlopen" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
15402
15945
{ $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15403
15946
$as_echo_n "checking for library containing dlopen... " >&6; }
15404
15947
if test "${ac_cv_search_dlopen+set}" = set; then
15492
16035
 
15493
16036
      ;;
15494
16037
   hpux*)
15495
 
      brltty_uc="`echo "shl_load" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`"
 
16038
      brltty_uc=`echo "shl_load" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
15496
16039
{ $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
15497
16040
$as_echo_n "checking for library containing shl_load... " >&6; }
15498
16041
if test "${ac_cv_search_shl_load+set}" = set; then
15589
16132
      ;;
15590
16133
esac
15591
16134
 
 
16135
serial_package=""
 
16136
serial_cflags=""
 
16137
serial_libs=""
 
16138
 
 
16139
 
 
16140
# Check whether --with-serial-package was given.
 
16141
if test "${with_serial_package+set}" = set; then
 
16142
  withval=$with_serial_package; packages="${withval}"
 
16143
else
 
16144
  packages="yes"
 
16145
 
 
16146
fi
 
16147
 
 
16148
 
 
16149
if test "${packages}" = "no"
 
16150
then
 
16151
   serial_package="none"
 
16152
elif test "${packages}" = "yes"
 
16153
then
 
16154
   packages="termios"
 
16155
         case "${host_os}"
 
16156
      in
 
16157
            mingw*)
 
16158
      serial_package="windows"
 
16159
      ;;
 
16160
   msdos*)
 
16161
      serial_package="msdos"
 
16162
      ;;
 
16163
   elf*)
 
16164
      serial_package="grub"
 
16165
      ;;
 
16166
 
 
16167
         *);;
 
16168
      esac
 
16169
 
 
16170
else
 
16171
   packages=`echo "${packages}" | sed -e 'y/,/ /'`
 
16172
fi
 
16173
 
 
16174
test -z "${serial_package}" && {
 
16175
   test -n "${packages}" && {
 
16176
      for package in ${packages}
 
16177
      do
 
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}"`
 
16182
            break
 
16183
         }
 
16184
 
 
16185
                     case "${package}"
 
16186
            in
 
16187
                  termios)
 
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
 
16193
fi
 
16194
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_termios_h" >&5
 
16195
$as_echo "$ac_cv_header_termios_h" >&6; }
 
16196
else
 
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
 
16201
/* confdefs.h.  */
 
16202
_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>
 
16208
_ACEOF
 
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;;
 
16214
esac
 
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
 
16218
  ac_status=$?
 
16219
  grep -v '^ *+' conftest.er1 >conftest.err
 
16220
  rm -f conftest.er1
 
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
 
16228
else
 
16229
  $as_echo "$as_me: failed program was:" >&5
 
16230
sed 's/^/| /' conftest.$ac_ext >&5
 
16231
 
 
16232
        ac_header_compiler=no
 
16233
fi
 
16234
 
 
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; }
 
16238
 
 
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
 
16243
/* confdefs.h.  */
 
16244
_ACEOF
 
16245
cat confdefs.h >>conftest.$ac_ext
 
16246
cat >>conftest.$ac_ext <<_ACEOF
 
16247
/* end confdefs.h.  */
 
16248
#include <termios.h>
 
16249
_ACEOF
 
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;;
 
16254
esac
 
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
 
16258
  ac_status=$?
 
16259
  grep -v '^ *+' conftest.er1 >conftest.err
 
16260
  rm -f conftest.er1
 
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
 
16266
       }; then
 
16267
  ac_header_preproc=yes
 
16268
else
 
16269
  $as_echo "$as_me: failed program was:" >&5
 
16270
sed 's/^/| /' conftest.$ac_ext >&5
 
16271
 
 
16272
  ac_header_preproc=no
 
16273
fi
 
16274
 
 
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; }
 
16278
 
 
16279
# So?  What about this header?
 
16280
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
16281
  yes:no: )
 
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
 
16287
    ;;
 
16288
  no: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;}
 
16301
    ( cat <<\_ASBOX
 
16302
## --------------------------------------- ##
 
16303
## Report this to http://mielke.cc/brltty/ ##
 
16304
## --------------------------------------- ##
 
16305
_ASBOX
 
16306
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
16307
    ;;
 
16308
esac
 
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
 
16313
else
 
16314
  ac_cv_header_termios_h=$ac_header_preproc
 
16315
fi
 
16316
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_termios_h" >&5
 
16317
$as_echo "$ac_cv_header_termios_h" >&6; }
 
16318
 
 
16319
fi
 
16320
if test "x$ac_cv_header_termios_h" = x""yes; then
 
16321
           serial_package="termios"
 
16322
 
 
16323
for ac_func in tcdrain
 
16324
do
 
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
 
16330
else
 
16331
  cat >conftest.$ac_ext <<_ACEOF
 
16332
/* confdefs.h.  */
 
16333
_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
 
16340
 
 
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.  */
 
16345
 
 
16346
#ifdef __STDC__
 
16347
# include <limits.h>
 
16348
#else
 
16349
# include <assert.h>
 
16350
#endif
 
16351
 
 
16352
#undef $ac_func
 
16353
 
 
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.  */
 
16357
#ifdef __cplusplus
 
16358
extern "C"
 
16359
#endif
 
16360
char $ac_func ();
 
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
 
16365
choke me
 
16366
#endif
 
16367
 
 
16368
int
 
16369
main ()
 
16370
{
 
16371
return $ac_func ();
 
16372
  ;
 
16373
  return 0;
 
16374
}
 
16375
_ACEOF
 
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;;
 
16381
esac
 
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
 
16385
  ac_status=$?
 
16386
  grep -v '^ *+' conftest.er1 >conftest.err
 
16387
  rm -f conftest.er1
 
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
 
16396
       }; then
 
16397
  eval "$as_ac_var=yes"
 
16398
else
 
16399
  $as_echo "$as_me: failed program was:" >&5
 
16400
sed 's/^/| /' conftest.$ac_ext >&5
 
16401
 
 
16402
        eval "$as_ac_var=no"
 
16403
fi
 
16404
 
 
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
 
16408
fi
 
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
 
16418
_ACEOF
 
16419
 
 
16420
fi
 
16421
done
 
16422
 
 
16423
 
 
16424
fi
 
16425
 
 
16426
 
 
16427
      ;;
 
16428
 
 
16429
               *);;
 
16430
            esac
 
16431
 
 
16432
            test -n "${serial_package}" && break
 
16433
 
 
16434
 
 
16435
         { $as_echo "$as_me:$LINENO: serial package not available: ${package}" >&5
 
16436
$as_echo "$as_me: serial package not available: ${package}" >&6;}
 
16437
      done
 
16438
   }
 
16439
}
 
16440
 
 
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;}
 
16445
}
 
16446
 
 
16447
 
 
16448
 
 
16449
 
 
16450
 
 
16451
cat >>confdefs.h <<_ACEOF
 
16452
#define SERIAL_PACKAGE ${serial_package}
 
16453
_ACEOF
 
16454
 
 
16455
brltty_uc=`echo "use_serial_package_${serial_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
 
16456
cat >>confdefs.h <<_ACEOF
 
16457
#define ${brltty_uc} 1
 
16458
_ACEOF
 
16459
 
 
16460
brltty_summary_lines="${brltty_summary_lines}
 
16461
   serial-package: ${serial_package}"
 
16462
 
15592
16463
usb_package=""
15593
16464
usb_cflags=""
15594
16465
usb_libs=""
15611
16482
   packages="libusb libusb-1.0"
15612
16483
         case "${host_os}"
15613
16484
      in
15614
 
            linux*|eabi*)
 
16485
            linux*)
15615
16486
      usb_package="linux"
15616
16487
      ;;
15617
16488
   solaris*)
15923
16794
   darwin*)
15924
16795
      usb_package="darwin"
15925
16796
      ;;
 
16797
   elf*)
 
16798
      usb_package="grub"
 
16799
      ;;
15926
16800
 
15927
16801
         *);;
15928
16802
      esac
16107
16981
 
16108
16982
 
16109
16983
 
 
16984
 
 
16985
cat >>confdefs.h <<_ACEOF
 
16986
#define USB_PACKAGE ${usb_package}
 
16987
_ACEOF
 
16988
 
 
16989
brltty_uc=`echo "use_usb_package_${usb_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
 
16990
cat >>confdefs.h <<_ACEOF
 
16991
#define ${brltty_uc} 1
 
16992
_ACEOF
 
16993
 
16110
16994
brltty_summary_lines="${brltty_summary_lines}
16111
16995
   usb-package: ${usb_package}"
16112
16996
 
16132
17016
   packages=""
16133
17017
         case "${host_os}"
16134
17018
      in
16135
 
            linux*|eabi*)
 
17019
            linux*)
16136
17020
      if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
16137
17021
  { $as_echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
16138
17022
$as_echo_n "checking for bluetooth/bluetooth.h... " >&6; }
16362
17246
 
16363
17247
 
16364
17248
 
 
17249
 
 
17250
cat >>confdefs.h <<_ACEOF
 
17251
#define BLUETOOTH_PACKAGE ${bluetooth_package}
 
17252
_ACEOF
 
17253
 
 
17254
brltty_uc=`echo "use_bluetooth_package_${bluetooth_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
 
17255
cat >>confdefs.h <<_ACEOF
 
17256
#define ${brltty_uc} 1
 
17257
_ACEOF
 
17258
 
16365
17259
brltty_summary_lines="${brltty_summary_lines}
16366
17260
   bluetooth-package: ${bluetooth_package}"
16367
17261
 
 
17262
charset_package=""
 
17263
charset_cflags=""
 
17264
charset_libs=""
 
17265
 
 
17266
 
 
17267
# Check whether --with-charset-package was given.
 
17268
if test "${with_charset_package+set}" = set; then
 
17269
  withval=$with_charset_package; packages="${withval}"
 
17270
else
 
17271
  packages="yes"
 
17272
 
 
17273
fi
 
17274
 
 
17275
 
 
17276
if test "${packages}" = "no"
 
17277
then
 
17278
   charset_package="none"
 
17279
elif test "${packages}" = "yes"
 
17280
then
 
17281
   packages="iconv"
 
17282
         case "${host_os}"
 
17283
      in
 
17284
            mingw*)
 
17285
      charset_package=windows
 
17286
      ;;
 
17287
   msdos*)
 
17288
      charset_package=msdos
 
17289
      ;;
 
17290
   elf*)
 
17291
      charset_package=grub
 
17292
      ;;
 
17293
 
 
17294
         *);;
 
17295
      esac
 
17296
 
 
17297
else
 
17298
   packages=`echo "${packages}" | sed -e 'y/,/ /'`
 
17299
fi
 
17300
 
 
17301
test -z "${charset_package}" && {
 
17302
   test -n "${packages}" && {
 
17303
      for package in ${packages}
 
17304
      do
 
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}"`
 
17309
            break
 
17310
         }
 
17311
 
 
17312
                     case "${package}"
 
17313
            in
 
17314
                  iconv)
 
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
 
17320
fi
 
17321
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
 
17322
$as_echo "$ac_cv_header_iconv_h" >&6; }
 
17323
else
 
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
 
17328
/* confdefs.h.  */
 
17329
_ACEOF
 
17330
cat confdefs.h >>conftest.$ac_ext
 
17331
cat >>conftest.$ac_ext <<_ACEOF
 
17332
/* end confdefs.h.  */
 
17333
$ac_includes_default
 
17334
#include <iconv.h>
 
17335
_ACEOF
 
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;;
 
17341
esac
 
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
 
17345
  ac_status=$?
 
17346
  grep -v '^ *+' conftest.er1 >conftest.err
 
17347
  rm -f conftest.er1
 
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
 
17355
else
 
17356
  $as_echo "$as_me: failed program was:" >&5
 
17357
sed 's/^/| /' conftest.$ac_ext >&5
 
17358
 
 
17359
        ac_header_compiler=no
 
17360
fi
 
17361
 
 
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; }
 
17365
 
 
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
 
17370
/* confdefs.h.  */
 
17371
_ACEOF
 
17372
cat confdefs.h >>conftest.$ac_ext
 
17373
cat >>conftest.$ac_ext <<_ACEOF
 
17374
/* end confdefs.h.  */
 
17375
#include <iconv.h>
 
17376
_ACEOF
 
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;;
 
17381
esac
 
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
 
17385
  ac_status=$?
 
17386
  grep -v '^ *+' conftest.er1 >conftest.err
 
17387
  rm -f conftest.er1
 
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
 
17393
       }; then
 
17394
  ac_header_preproc=yes
 
17395
else
 
17396
  $as_echo "$as_me: failed program was:" >&5
 
17397
sed 's/^/| /' conftest.$ac_ext >&5
 
17398
 
 
17399
  ac_header_preproc=no
 
17400
fi
 
17401
 
 
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; }
 
17405
 
 
17406
# So?  What about this header?
 
17407
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
17408
  yes:no: )
 
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
 
17414
    ;;
 
17415
  no: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;}
 
17428
    ( cat <<\_ASBOX
 
17429
## --------------------------------------- ##
 
17430
## Report this to http://mielke.cc/brltty/ ##
 
17431
## --------------------------------------- ##
 
17432
_ASBOX
 
17433
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
17434
    ;;
 
17435
esac
 
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
 
17440
else
 
17441
  ac_cv_header_iconv_h=$ac_header_preproc
 
17442
fi
 
17443
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
 
17444
$as_echo "$ac_cv_header_iconv_h" >&6; }
 
17445
 
 
17446
fi
 
17447
if test "x$ac_cv_header_iconv_h" = x""yes; then
 
17448
           charset_package=iconv
 
17449
 
 
17450
fi
 
17451
 
 
17452
 
 
17453
      ;;
 
17454
 
 
17455
               *);;
 
17456
            esac
 
17457
 
 
17458
            test -n "${charset_package}" && break
 
17459
 
 
17460
 
 
17461
         { $as_echo "$as_me:$LINENO: charset package not available: ${package}" >&5
 
17462
$as_echo "$as_me: charset package not available: ${package}" >&6;}
 
17463
      done
 
17464
   }
 
17465
}
 
17466
 
 
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;}
 
17471
}
 
17472
 
 
17473
 
 
17474
 
 
17475
 
 
17476
 
 
17477
cat >>confdefs.h <<_ACEOF
 
17478
#define CHARSET_PACKAGE ${charset_package}
 
17479
_ACEOF
 
17480
 
 
17481
brltty_uc=`echo "use_charset_package_${charset_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
 
17482
cat >>confdefs.h <<_ACEOF
 
17483
#define ${brltty_uc} 1
 
17484
_ACEOF
 
17485
 
 
17486
brltty_summary_lines="${brltty_summary_lines}
 
17487
   charset-package: ${charset_package}"
 
17488
 
 
17489
hostcmd_package=""
 
17490
hostcmd_cflags=""
 
17491
hostcmd_libs=""
 
17492
 
 
17493
 
 
17494
# Check whether --with-hostcmd-package was given.
 
17495
if test "${with_hostcmd_package+set}" = set; then
 
17496
  withval=$with_hostcmd_package; packages="${withval}"
 
17497
else
 
17498
  packages="yes"
 
17499
 
 
17500
fi
 
17501
 
 
17502
 
 
17503
if test "${packages}" = "no"
 
17504
then
 
17505
   hostcmd_package="none"
 
17506
elif test "${packages}" = "yes"
 
17507
then
 
17508
   packages="unix"
 
17509
         case "${host_os}"
 
17510
      in
 
17511
 
 
17512
         *);;
 
17513
      esac
 
17514
 
 
17515
else
 
17516
   packages=`echo "${packages}" | sed -e 'y/,/ /'`
 
17517
fi
 
17518
 
 
17519
test -z "${hostcmd_package}" && {
 
17520
   test -n "${packages}" && {
 
17521
      for package in ${packages}
 
17522
      do
 
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}"`
 
17527
            break
 
17528
         }
 
17529
 
 
17530
                     case "${package}"
 
17531
            in
 
17532
                  unix)
 
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
 
17537
else
 
17538
  cat >conftest.$ac_ext <<_ACEOF
 
17539
/* confdefs.h.  */
 
17540
_ACEOF
 
17541
cat confdefs.h >>conftest.$ac_ext
 
17542
cat >>conftest.$ac_ext <<_ACEOF
 
17543
/* end confdefs.h.  */
 
17544
$ac_includes_default
 
17545
int
 
17546
main ()
 
17547
{
 
17548
#ifndef fork
 
17549
  (void) fork;
 
17550
#endif
 
17551
 
 
17552
  ;
 
17553
  return 0;
 
17554
}
 
17555
_ACEOF
 
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;;
 
17561
esac
 
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
 
17565
  ac_status=$?
 
17566
  grep -v '^ *+' conftest.er1 >conftest.err
 
17567
  rm -f conftest.er1
 
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
 
17575
else
 
17576
  $as_echo "$as_me: failed program was:" >&5
 
17577
sed 's/^/| /' conftest.$ac_ext >&5
 
17578
 
 
17579
        ac_cv_have_decl_fork=no
 
17580
fi
 
17581
 
 
17582
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17583
fi
 
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
 
17592
fi
 
17593
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
 
17594
$as_echo "$ac_cv_header_signal_h" >&6; }
 
17595
else
 
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
 
17600
/* confdefs.h.  */
 
17601
_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>
 
17607
_ACEOF
 
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;;
 
17613
esac
 
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
 
17617
  ac_status=$?
 
17618
  grep -v '^ *+' conftest.er1 >conftest.err
 
17619
  rm -f conftest.er1
 
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
 
17627
else
 
17628
  $as_echo "$as_me: failed program was:" >&5
 
17629
sed 's/^/| /' conftest.$ac_ext >&5
 
17630
 
 
17631
        ac_header_compiler=no
 
17632
fi
 
17633
 
 
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; }
 
17637
 
 
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
 
17642
/* confdefs.h.  */
 
17643
_ACEOF
 
17644
cat confdefs.h >>conftest.$ac_ext
 
17645
cat >>conftest.$ac_ext <<_ACEOF
 
17646
/* end confdefs.h.  */
 
17647
#include <signal.h>
 
17648
_ACEOF
 
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;;
 
17653
esac
 
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
 
17657
  ac_status=$?
 
17658
  grep -v '^ *+' conftest.er1 >conftest.err
 
17659
  rm -f conftest.er1
 
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
 
17665
       }; then
 
17666
  ac_header_preproc=yes
 
17667
else
 
17668
  $as_echo "$as_me: failed program was:" >&5
 
17669
sed 's/^/| /' conftest.$ac_ext >&5
 
17670
 
 
17671
  ac_header_preproc=no
 
17672
fi
 
17673
 
 
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; }
 
17677
 
 
17678
# So?  What about this header?
 
17679
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
17680
  yes:no: )
 
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
 
17686
    ;;
 
17687
  no: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;}
 
17700
    ( cat <<\_ASBOX
 
17701
## --------------------------------------- ##
 
17702
## Report this to http://mielke.cc/brltty/ ##
 
17703
## --------------------------------------- ##
 
17704
_ASBOX
 
17705
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
17706
    ;;
 
17707
esac
 
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
 
17712
else
 
17713
  ac_cv_header_signal_h=$ac_header_preproc
 
17714
fi
 
17715
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
 
17716
$as_echo "$ac_cv_header_signal_h" >&6; }
 
17717
 
 
17718
fi
 
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
 
17724
else
 
17725
  cat >conftest.$ac_ext <<_ACEOF
 
17726
/* confdefs.h.  */
 
17727
_ACEOF
 
17728
cat confdefs.h >>conftest.$ac_ext
 
17729
cat >>conftest.$ac_ext <<_ACEOF
 
17730
/* end confdefs.h.  */
 
17731
#include <signal.h>
 
17732
 
 
17733
 
 
17734
int
 
17735
main ()
 
17736
{
 
17737
#ifndef SIGCHLD
 
17738
  (void) SIGCHLD;
 
17739
#endif
 
17740
 
 
17741
  ;
 
17742
  return 0;
 
17743
}
 
17744
_ACEOF
 
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;;
 
17750
esac
 
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
 
17754
  ac_status=$?
 
17755
  grep -v '^ *+' conftest.er1 >conftest.err
 
17756
  rm -f conftest.er1
 
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
 
17764
else
 
17765
  $as_echo "$as_me: failed program was:" >&5
 
17766
sed 's/^/| /' conftest.$ac_ext >&5
 
17767
 
 
17768
        ac_cv_have_decl_SIGCHLD=no
 
17769
fi
 
17770
 
 
17771
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17772
fi
 
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
 
17777
 
 
17778
fi
 
17779
 
 
17780
 
 
17781
fi
 
17782
 
 
17783
 
 
17784
 
 
17785
fi
 
17786
 
 
17787
      ;;
 
17788
 
 
17789
               *);;
 
17790
            esac
 
17791
 
 
17792
            test -n "${hostcmd_package}" && break
 
17793
 
 
17794
 
 
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;}
 
17797
      done
 
17798
   }
 
17799
}
 
17800
 
 
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;}
 
17805
}
 
17806
 
 
17807
 
 
17808
 
 
17809
 
 
17810
 
 
17811
cat >>confdefs.h <<_ACEOF
 
17812
#define HOSTCMD_PACKAGE ${hostcmd_package}
 
17813
_ACEOF
 
17814
 
 
17815
brltty_uc=`echo "use_hostcmd_package_${hostcmd_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
 
17816
cat >>confdefs.h <<_ACEOF
 
17817
#define ${brltty_uc} 1
 
17818
_ACEOF
 
17819
 
 
17820
brltty_summary_lines="${brltty_summary_lines}
 
17821
   hostcmd-package: ${hostcmd_package}"
 
17822
 
 
17823
mount_package=""
 
17824
mount_cflags=""
 
17825
mount_libs=""
 
17826
 
 
17827
 
 
17828
# Check whether --with-mount-package was given.
 
17829
if test "${with_mount_package+set}" = set; then
 
17830
  withval=$with_mount_package; packages="${withval}"
 
17831
else
 
17832
  packages="yes"
 
17833
 
 
17834
fi
 
17835
 
 
17836
 
 
17837
if test "${packages}" = "no"
 
17838
then
 
17839
   mount_package="none"
 
17840
elif test "${packages}" = "yes"
 
17841
then
 
17842
   packages="mntent mnttab"
 
17843
         case "${host_os}"
 
17844
      in
 
17845
 
 
17846
         *);;
 
17847
      esac
 
17848
 
 
17849
else
 
17850
   packages=`echo "${packages}" | sed -e 'y/,/ /'`
 
17851
fi
 
17852
 
 
17853
test -z "${mount_package}" && {
 
17854
   test -n "${packages}" && {
 
17855
      for package in ${packages}
 
17856
      do
 
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}"`
 
17861
            break
 
17862
         }
 
17863
 
 
17864
                     case "${package}"
 
17865
            in
 
17866
                  mntent)
 
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
 
17872
fi
 
17873
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mntent_h" >&5
 
17874
$as_echo "$ac_cv_header_mntent_h" >&6; }
 
17875
else
 
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
 
17880
/* confdefs.h.  */
 
17881
_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>
 
17887
_ACEOF
 
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;;
 
17893
esac
 
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
 
17897
  ac_status=$?
 
17898
  grep -v '^ *+' conftest.er1 >conftest.err
 
17899
  rm -f conftest.er1
 
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
 
17907
else
 
17908
  $as_echo "$as_me: failed program was:" >&5
 
17909
sed 's/^/| /' conftest.$ac_ext >&5
 
17910
 
 
17911
        ac_header_compiler=no
 
17912
fi
 
17913
 
 
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; }
 
17917
 
 
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
 
17922
/* confdefs.h.  */
 
17923
_ACEOF
 
17924
cat confdefs.h >>conftest.$ac_ext
 
17925
cat >>conftest.$ac_ext <<_ACEOF
 
17926
/* end confdefs.h.  */
 
17927
#include <mntent.h>
 
17928
_ACEOF
 
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;;
 
17933
esac
 
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
 
17937
  ac_status=$?
 
17938
  grep -v '^ *+' conftest.er1 >conftest.err
 
17939
  rm -f conftest.er1
 
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
 
17945
       }; then
 
17946
  ac_header_preproc=yes
 
17947
else
 
17948
  $as_echo "$as_me: failed program was:" >&5
 
17949
sed 's/^/| /' conftest.$ac_ext >&5
 
17950
 
 
17951
  ac_header_preproc=no
 
17952
fi
 
17953
 
 
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; }
 
17957
 
 
17958
# So?  What about this header?
 
17959
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
17960
  yes:no: )
 
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
 
17966
    ;;
 
17967
  no: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;}
 
17980
    ( cat <<\_ASBOX
 
17981
## --------------------------------------- ##
 
17982
## Report this to http://mielke.cc/brltty/ ##
 
17983
## --------------------------------------- ##
 
17984
_ASBOX
 
17985
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
17986
    ;;
 
17987
esac
 
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
 
17992
else
 
17993
  ac_cv_header_mntent_h=$ac_header_preproc
 
17994
fi
 
17995
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mntent_h" >&5
 
17996
$as_echo "$ac_cv_header_mntent_h" >&6; }
 
17997
 
 
17998
fi
 
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
 
18004
else
 
18005
  cat >conftest.$ac_ext <<_ACEOF
 
18006
/* confdefs.h.  */
 
18007
_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
 
18014
 
 
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.  */
 
18019
 
 
18020
#ifdef __STDC__
 
18021
# include <limits.h>
 
18022
#else
 
18023
# include <assert.h>
 
18024
#endif
 
18025
 
 
18026
#undef setmntent
 
18027
 
 
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.  */
 
18031
#ifdef __cplusplus
 
18032
extern "C"
 
18033
#endif
 
18034
char setmntent ();
 
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
 
18039
choke me
 
18040
#endif
 
18041
 
 
18042
int
 
18043
main ()
 
18044
{
 
18045
return setmntent ();
 
18046
  ;
 
18047
  return 0;
 
18048
}
 
18049
_ACEOF
 
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;;
 
18055
esac
 
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
 
18059
  ac_status=$?
 
18060
  grep -v '^ *+' conftest.er1 >conftest.err
 
18061
  rm -f conftest.er1
 
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
 
18070
       }; then
 
18071
  ac_cv_func_setmntent=yes
 
18072
else
 
18073
  $as_echo "$as_me: failed program was:" >&5
 
18074
sed 's/^/| /' conftest.$ac_ext >&5
 
18075
 
 
18076
        ac_cv_func_setmntent=no
 
18077
fi
 
18078
 
 
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
 
18082
fi
 
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
 
18087
 
 
18088
for ac_func in addmntent
 
18089
do
 
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
 
18095
else
 
18096
  cat >conftest.$ac_ext <<_ACEOF
 
18097
/* confdefs.h.  */
 
18098
_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
 
18105
 
 
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.  */
 
18110
 
 
18111
#ifdef __STDC__
 
18112
# include <limits.h>
 
18113
#else
 
18114
# include <assert.h>
 
18115
#endif
 
18116
 
 
18117
#undef $ac_func
 
18118
 
 
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.  */
 
18122
#ifdef __cplusplus
 
18123
extern "C"
 
18124
#endif
 
18125
char $ac_func ();
 
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
 
18130
choke me
 
18131
#endif
 
18132
 
 
18133
int
 
18134
main ()
 
18135
{
 
18136
return $ac_func ();
 
18137
  ;
 
18138
  return 0;
 
18139
}
 
18140
_ACEOF
 
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;;
 
18146
esac
 
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
 
18150
  ac_status=$?
 
18151
  grep -v '^ *+' conftest.er1 >conftest.err
 
18152
  rm -f conftest.er1
 
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
 
18161
       }; then
 
18162
  eval "$as_ac_var=yes"
 
18163
else
 
18164
  $as_echo "$as_me: failed program was:" >&5
 
18165
sed 's/^/| /' conftest.$ac_ext >&5
 
18166
 
 
18167
        eval "$as_ac_var=no"
 
18168
fi
 
18169
 
 
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
 
18173
fi
 
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
 
18183
_ACEOF
 
18184
 
 
18185
fi
 
18186
done
 
18187
 
 
18188
 
 
18189
fi
 
18190
 
 
18191
 
 
18192
fi
 
18193
 
 
18194
 
 
18195
      ;;
 
18196
   mnttab)
 
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
 
18202
fi
 
18203
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mnttab_h" >&5
 
18204
$as_echo "$ac_cv_header_sys_mnttab_h" >&6; }
 
18205
else
 
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
 
18210
/* confdefs.h.  */
 
18211
_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>
 
18217
_ACEOF
 
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;;
 
18223
esac
 
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
 
18227
  ac_status=$?
 
18228
  grep -v '^ *+' conftest.er1 >conftest.err
 
18229
  rm -f conftest.er1
 
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
 
18237
else
 
18238
  $as_echo "$as_me: failed program was:" >&5
 
18239
sed 's/^/| /' conftest.$ac_ext >&5
 
18240
 
 
18241
        ac_header_compiler=no
 
18242
fi
 
18243
 
 
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; }
 
18247
 
 
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
 
18252
/* confdefs.h.  */
 
18253
_ACEOF
 
18254
cat confdefs.h >>conftest.$ac_ext
 
18255
cat >>conftest.$ac_ext <<_ACEOF
 
18256
/* end confdefs.h.  */
 
18257
#include <sys/mnttab.h>
 
18258
_ACEOF
 
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;;
 
18263
esac
 
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
 
18267
  ac_status=$?
 
18268
  grep -v '^ *+' conftest.er1 >conftest.err
 
18269
  rm -f conftest.er1
 
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
 
18275
       }; then
 
18276
  ac_header_preproc=yes
 
18277
else
 
18278
  $as_echo "$as_me: failed program was:" >&5
 
18279
sed 's/^/| /' conftest.$ac_ext >&5
 
18280
 
 
18281
  ac_header_preproc=no
 
18282
fi
 
18283
 
 
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; }
 
18287
 
 
18288
# So?  What about this header?
 
18289
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
18290
  yes:no: )
 
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
 
18296
    ;;
 
18297
  no: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;}
 
18310
    ( cat <<\_ASBOX
 
18311
## --------------------------------------- ##
 
18312
## Report this to http://mielke.cc/brltty/ ##
 
18313
## --------------------------------------- ##
 
18314
_ASBOX
 
18315
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
18316
    ;;
 
18317
esac
 
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
 
18322
else
 
18323
  ac_cv_header_sys_mnttab_h=$ac_header_preproc
 
18324
fi
 
18325
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mnttab_h" >&5
 
18326
$as_echo "$ac_cv_header_sys_mnttab_h" >&6; }
 
18327
 
 
18328
fi
 
18329
if test "x$ac_cv_header_sys_mnttab_h" = x""yes; then
 
18330
           mount_package=mnttab
 
18331
 
 
18332
fi
 
18333
 
 
18334
 
 
18335
      ;;
 
18336
 
 
18337
               *);;
 
18338
            esac
 
18339
 
 
18340
            test -n "${mount_package}" && break
 
18341
 
 
18342
 
 
18343
         { $as_echo "$as_me:$LINENO: mount package not available: ${package}" >&5
 
18344
$as_echo "$as_me: mount package not available: ${package}" >&6;}
 
18345
      done
 
18346
   }
 
18347
}
 
18348
 
 
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;}
 
18353
}
 
18354
 
 
18355
 
 
18356
 
 
18357
 
 
18358
 
 
18359
cat >>confdefs.h <<_ACEOF
 
18360
#define MOUNT_PACKAGE ${mount_package}
 
18361
_ACEOF
 
18362
 
 
18363
brltty_uc=`echo "use_mount_package_${mount_package}" | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`
 
18364
cat >>confdefs.h <<_ACEOF
 
18365
#define ${brltty_uc} 1
 
18366
_ACEOF
 
18367
 
 
18368
brltty_summary_lines="${brltty_summary_lines}
 
18369
   mount-package: ${mount_package}"
 
18370
 
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"
16437
18440
brltty_item_names_braille="${brltty_item_names_braille} HandyTech"
16438
18441
braille_libraries_ht=''
16439
18442
 
 
18443
brltty_item_entries_braille="${brltty_item_entries_braille} hw-HumanWare"
 
18444
brltty_item_codes_braille="${brltty_item_codes_braille} hw"
 
18445
brltty_item_names_braille="${brltty_item_names_braille} HumanWare"
 
18446
braille_libraries_hw=''
 
18447
 
16440
18448
case "${host_os}"
16441
18449
in
16442
18450
   linux*)
16447
18455
 
16448
18456
      ;;
16449
18457
esac
 
18458
brltty_item_entries_braille="${brltty_item_entries_braille} ir-Iris"
 
18459
brltty_item_codes_braille="${brltty_item_codes_braille} ir"
 
18460
brltty_item_names_braille="${brltty_item_names_braille} Iris"
 
18461
braille_libraries_ir=''
 
18462
 
16450
18463
 
16451
18464
# Check whether --with-libbraille was given.
16452
18465
if test "${with_libbraille+set}" = set; then
16576
18589
braille_libraries_xw='$(XTK_LIBS) $(X_LIBS)'
16577
18590
 
16578
18591
}
 
18592
brltty_item_entries_braille="${brltty_item_entries_braille} np-NinePoint"
 
18593
brltty_item_codes_braille="${brltty_item_codes_braille} np"
 
18594
brltty_item_names_braille="${brltty_item_names_braille} NinePoint"
 
18595
braille_libraries_np=''
 
18596
 
16579
18597
brltty_item_codes_braille="`echo "${brltty_item_codes_braille}" | sed -e 's/^ *//' -e 's/ *$//'`"
16580
18598
 
16581
18599
 
16678
18696
   brltty_item_entry=`expr "${brltty_items_left_braille}" : '.* \([^- ]*-'"${brltty_item}"'[^ ]*\)'`
16679
18697
   if test -z "${brltty_item_entry}"
16680
18698
   then
16681
 
      brltty_lowercase=`echo "${brltty_items_left_braille}" | sed 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ%abcdefghijklmnopqrstuvwxyz%'`
 
18699
      brltty_lowercase=`echo "${brltty_items_left_braille}" | sed -e 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ%abcdefghijklmnopqrstuvwxyz%'`
16682
18700
      brltty_item_code=`expr "${brltty_lowercase}" : '.* \([^- ]*\)-'"${brltty_item}"`
16683
18701
      if test -n "${brltty_item_code}"
16684
18702
      then
16733
18751
   brltty_item_entry=`expr "${brltty_items_left_braille}" : '.* \([^- ]*-'"${brltty_item}"'[^ ]*\)'`
16734
18752
   if test -z "${brltty_item_entry}"
16735
18753
   then
16736
 
      brltty_lowercase=`echo "${brltty_items_left_braille}" | sed 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ%abcdefghijklmnopqrstuvwxyz%'`
 
18754
      brltty_lowercase=`echo "${brltty_items_left_braille}" | sed -e 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ%abcdefghijklmnopqrstuvwxyz%'`
16737
18755
      brltty_item_code=`expr "${brltty_lowercase}" : '.* \([^- ]*\)-'"${brltty_item}"`
16738
18756
      if test -n "${brltty_item_code}"
16739
18757
      then
16864
18882
   mingw*)
16865
18883
      brltty_cv_device_directory="//."
16866
18884
      ;;
 
18885
   elf*)
 
18886
      brltty_cv_device_directory=""
 
18887
      ;;
16867
18888
   *)
16868
18889
      brltty_cv_device_directory="/dev"
16869
18890
      ;;
16884
18905
else
16885
18906
  case "${host_os}"
16886
18907
in
16887
 
   linux*|eabi*)
16888
 
      for brltty_device in "ttyS0" "tts/0"
16889
 
      do
16890
 
         test -c "${brltty_cv_device_directory}/${brltty_device}" && {
16891
 
            brltty_cv_device_serial_first="${brltty_device}"
16892
 
            break
16893
 
         }
16894
 
      done
 
18908
   linux*)
 
18909
      brltty_cv_device_serial_first="ttyS0"
16895
18910
      ;;
16896
18911
   gnu*)
16897
18912
      brltty_cv_device_serial_first="com0"
16926
18941
   mingw*|msdos*)
16927
18942
      brltty_cv_device_serial_first="COM1"
16928
18943
      ;;
 
18944
   elf*)
 
18945
      brltty_cv_device_serial_first="com0"
 
18946
      ;;
16929
18947
   *)
16930
18948
      brltty_cv_device_serial_first=""
16931
 
      { $as_echo "$as_me:$LINENO: WARNING: no default braille device" >&5
16932
 
$as_echo "$as_me: WARNING: no default braille device" >&2;}
 
18949
      { $as_echo "$as_me:$LINENO: WARNING: primary serial device not configured for ${host_os}" >&5
 
18950
$as_echo "$as_me: WARNING: primary serial device not configured for ${host_os}" >&2;}
16933
18951
      ;;
16934
18952
esac
16935
18953
fi
16936
18954
{ $as_echo "$as_me:$LINENO: result: $brltty_cv_device_serial_first" >&5
16937
18955
$as_echo "$brltty_cv_device_serial_first" >&6; }
16938
 
first_serial_device=${brltty_cv_device_serial_first}
 
18956
serial_first_device=${brltty_cv_device_serial_first}
16939
18957
 
16940
18958
 
16941
18959
cat >>confdefs.h <<_ACEOF
16942
 
#define FIRST_SERIAL_DEVICE "${first_serial_device}"
 
18960
#define SERIAL_FIRST_DEVICE "${serial_first_device}"
16943
18961
_ACEOF
16944
18962
 
16945
18963
 
16961
18979
   then
16962
18980
      braille_device="usb:"
16963
18981
   else
16964
 
      braille_device="serial:${first_serial_device}"
 
18982
      braille_device="serial:${serial_first_device}"
16965
18983
   fi
16966
18984
fi
16967
18985
 
17677
19695
   brltty_item_entry=`expr "${brltty_items_left_speech}" : '.* \([^- ]*-'"${brltty_item}"'[^ ]*\)'`
17678
19696
   if test -z "${brltty_item_entry}"
17679
19697
   then
17680
 
      brltty_lowercase=`echo "${brltty_items_left_speech}" | sed 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ%abcdefghijklmnopqrstuvwxyz%'`
 
19698
      brltty_lowercase=`echo "${brltty_items_left_speech}" | sed -e 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ%abcdefghijklmnopqrstuvwxyz%'`
17681
19699
      brltty_item_code=`expr "${brltty_lowercase}" : '.* \([^- ]*\)-'"${brltty_item}"`
17682
19700
      if test -n "${brltty_item_code}"
17683
19701
      then
17732
19750
   brltty_item_entry=`expr "${brltty_items_left_speech}" : '.* \([^- ]*-'"${brltty_item}"'[^ ]*\)'`
17733
19751
   if test -z "${brltty_item_entry}"
17734
19752
   then
17735
 
      brltty_lowercase=`echo "${brltty_items_left_speech}" | sed 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ%abcdefghijklmnopqrstuvwxyz%'`
 
19753
      brltty_lowercase=`echo "${brltty_items_left_speech}" | sed -e 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ%abcdefghijklmnopqrstuvwxyz%'`
17736
19754
      brltty_item_code=`expr "${brltty_lowercase}" : '.* \([^- ]*\)-'"${brltty_item}"`
17737
19755
      if test -n "${brltty_item_code}"
17738
19756
      then
17855
19873
 
17856
19874
case "${host_os}"
17857
19875
in
17858
 
   linux*|eabi*)
 
19876
   linux*)
17859
19877
      brltty_item_entries_screen="${brltty_item_entries_screen} lx-Linux"
17860
19878
brltty_item_codes_screen="${brltty_item_codes_screen} lx"
17861
19879
brltty_item_names_screen="${brltty_item_names_screen} Linux"
17884
19902
screen_libraries_pb=''
17885
19903
 
17886
19904
      ;;
 
19905
   elf*)
 
19906
      brltty_item_entries_screen="${brltty_item_entries_screen} gb-Grub"
 
19907
brltty_item_codes_screen="${brltty_item_codes_screen} gb"
 
19908
brltty_item_names_screen="${brltty_item_names_screen} Grub"
 
19909
screen_libraries_gb=''
 
19910
 
 
19911
      ;;
17887
19912
   *)
17888
19913
      { $as_echo "$as_me:$LINENO: WARNING: no native screen driver for ${host_os}" >&5
17889
19914
$as_echo "$as_me: WARNING: no native screen driver for ${host_os}" >&2;}
17890
19915
      ;;
17891
19916
esac
17892
 
brltty_item_entries_screen="${brltty_item_entries_screen} sc-Screen"
 
19917
 
 
19918
if test "${ac_cv_header_sys_shm_h+set}" = set; then
 
19919
  { $as_echo "$as_me:$LINENO: checking for sys/shm.h" >&5
 
19920
$as_echo_n "checking for sys/shm.h... " >&6; }
 
19921
if test "${ac_cv_header_sys_shm_h+set}" = set; then
 
19922
  $as_echo_n "(cached) " >&6
 
19923
fi
 
19924
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
 
19925
$as_echo "$ac_cv_header_sys_shm_h" >&6; }
 
19926
else
 
19927
  # Is the header compilable?
 
19928
{ $as_echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
 
19929
$as_echo_n "checking sys/shm.h usability... " >&6; }
 
19930
cat >conftest.$ac_ext <<_ACEOF
 
19931
/* confdefs.h.  */
 
19932
_ACEOF
 
19933
cat confdefs.h >>conftest.$ac_ext
 
19934
cat >>conftest.$ac_ext <<_ACEOF
 
19935
/* end confdefs.h.  */
 
19936
$ac_includes_default
 
19937
#include <sys/shm.h>
 
19938
_ACEOF
 
19939
rm -f conftest.$ac_objext
 
19940
if { (ac_try="$ac_compile"
 
19941
case "(($ac_try" in
 
19942
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19943
  *) ac_try_echo=$ac_try;;
 
19944
esac
 
19945
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19946
$as_echo "$ac_try_echo") >&5
 
19947
  (eval "$ac_compile") 2>conftest.er1
 
19948
  ac_status=$?
 
19949
  grep -v '^ *+' conftest.er1 >conftest.err
 
19950
  rm -f conftest.er1
 
19951
  cat conftest.err >&5
 
19952
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19953
  (exit $ac_status); } && {
 
19954
         test -z "$ac_c_werror_flag" ||
 
19955
         test ! -s conftest.err
 
19956
       } && test -s conftest.$ac_objext; then
 
19957
  ac_header_compiler=yes
 
19958
else
 
19959
  $as_echo "$as_me: failed program was:" >&5
 
19960
sed 's/^/| /' conftest.$ac_ext >&5
 
19961
 
 
19962
        ac_header_compiler=no
 
19963
fi
 
19964
 
 
19965
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19966
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19967
$as_echo "$ac_header_compiler" >&6; }
 
19968
 
 
19969
# Is the header present?
 
19970
{ $as_echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
 
19971
$as_echo_n "checking sys/shm.h presence... " >&6; }
 
19972
cat >conftest.$ac_ext <<_ACEOF
 
19973
/* confdefs.h.  */
 
19974
_ACEOF
 
19975
cat confdefs.h >>conftest.$ac_ext
 
19976
cat >>conftest.$ac_ext <<_ACEOF
 
19977
/* end confdefs.h.  */
 
19978
#include <sys/shm.h>
 
19979
_ACEOF
 
19980
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
19981
case "(($ac_try" in
 
19982
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19983
  *) ac_try_echo=$ac_try;;
 
19984
esac
 
19985
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19986
$as_echo "$ac_try_echo") >&5
 
19987
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
19988
  ac_status=$?
 
19989
  grep -v '^ *+' conftest.er1 >conftest.err
 
19990
  rm -f conftest.er1
 
19991
  cat conftest.err >&5
 
19992
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19993
  (exit $ac_status); } >/dev/null && {
 
19994
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
19995
         test ! -s conftest.err
 
19996
       }; then
 
19997
  ac_header_preproc=yes
 
19998
else
 
19999
  $as_echo "$as_me: failed program was:" >&5
 
20000
sed 's/^/| /' conftest.$ac_ext >&5
 
20001
 
 
20002
  ac_header_preproc=no
 
20003
fi
 
20004
 
 
20005
rm -f conftest.err conftest.$ac_ext
 
20006
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20007
$as_echo "$ac_header_preproc" >&6; }
 
20008
 
 
20009
# So?  What about this header?
 
20010
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20011
  yes:no: )
 
20012
    { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
20013
$as_echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20014
    { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5
 
20015
$as_echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;}
 
20016
    ac_header_preproc=yes
 
20017
    ;;
 
20018
  no:yes:* )
 
20019
    { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
 
20020
$as_echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
 
20021
    { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h:     check for missing prerequisite headers?" >&5
 
20022
$as_echo "$as_me: WARNING: sys/shm.h:     check for missing prerequisite headers?" >&2;}
 
20023
    { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5
 
20024
$as_echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;}
 
20025
    { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h:     section \"Present But Cannot Be Compiled\"" >&5
 
20026
$as_echo "$as_me: WARNING: sys/shm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20027
    { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
 
20028
$as_echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
 
20029
    { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5
 
20030
$as_echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;}
 
20031
    ( cat <<\_ASBOX
 
20032
## --------------------------------------- ##
 
20033
## Report this to http://mielke.cc/brltty/ ##
 
20034
## --------------------------------------- ##
 
20035
_ASBOX
 
20036
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20037
    ;;
 
20038
esac
 
20039
{ $as_echo "$as_me:$LINENO: checking for sys/shm.h" >&5
 
20040
$as_echo_n "checking for sys/shm.h... " >&6; }
 
20041
if test "${ac_cv_header_sys_shm_h+set}" = set; then
 
20042
  $as_echo_n "(cached) " >&6
 
20043
else
 
20044
  ac_cv_header_sys_shm_h=$ac_header_preproc
 
20045
fi
 
20046
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
 
20047
$as_echo "$ac_cv_header_sys_shm_h" >&6; }
 
20048
 
 
20049
fi
 
20050
if test "x$ac_cv_header_sys_shm_h" = x""yes; then
 
20051
     brltty_item_entries_screen="${brltty_item_entries_screen} sc-Screen"
17893
20052
brltty_item_codes_screen="${brltty_item_codes_screen} sc"
17894
20053
brltty_item_names_screen="${brltty_item_names_screen} Screen"
17895
20054
screen_libraries_sc=''
17896
20055
 
17897
20056
 
17898
 
cspi_includes=""
 
20057
fi
 
20058
 
 
20059
 
 
20060
 
 
20061
if test "${brltty_enabled_x}" = "yes"
 
20062
then
 
20063
   cspi_includes=""
17899
20064
cspi_libs=""
17900
20065
for package_specification in cspi-1.0
17901
20066
do
17903
20068
      package_name="${package_specification%% *}"
17904
20069
      cspi_includes=`pkg-config --cflags-only-I "${package_name}"`
17905
20070
      cspi_libs=`pkg-config ${pkgconfig_flags_libs} "${package_name}"`
17906
 
         if test "${ac_cv_header_X11_keysym_h+set}" = set; then
 
20071
            if test "${ac_cv_header_X11_keysym_h+set}" = set; then
17907
20072
  { $as_echo "$as_me:$LINENO: checking for X11/keysym.h" >&5
17908
20073
$as_echo_n "checking for X11/keysym.h... " >&6; }
17909
20074
if test "${ac_cv_header_X11_keysym_h+set}" = set; then
18036
20201
 
18037
20202
fi
18038
20203
if test "x$ac_cv_header_X11_keysym_h" = x""yes; then
18039
 
        if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
 
20204
           if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
18040
20205
  { $as_echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
18041
20206
$as_echo_n "checking for X11/Xlib.h... " >&6; }
18042
20207
if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
18169
20334
 
18170
20335
fi
18171
20336
if test "x$ac_cv_header_X11_Xlib_h" = x""yes; then
18172
 
           brltty_item_entries_screen="${brltty_item_entries_screen} as-AtSpi"
 
20337
              brltty_item_entries_screen="${brltty_item_entries_screen} as-AtSpi"
18173
20338
brltty_item_codes_screen="${brltty_item_codes_screen} as"
18174
20339
brltty_item_names_screen="${brltty_item_names_screen} AtSpi"
18175
20340
screen_libraries_as='$(X_LIBS) $(CSPI_LIBS)'
18189
20354
 
18190
20355
 
18191
20356
 
 
20357
fi
18192
20358
 
18193
20359
dbus_includes=""
18194
20360
dbus_libs=""
18450
20616
   brltty_item_entry=`expr "${brltty_items_left_screen}" : '.* \([^- ]*-'"${brltty_item}"'[^ ]*\)'`
18451
20617
   if test -z "${brltty_item_entry}"
18452
20618
   then
18453
 
      brltty_lowercase=`echo "${brltty_items_left_screen}" | sed 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ%abcdefghijklmnopqrstuvwxyz%'`
 
20619
      brltty_lowercase=`echo "${brltty_items_left_screen}" | sed -e 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ%abcdefghijklmnopqrstuvwxyz%'`
18454
20620
      brltty_item_code=`expr "${brltty_lowercase}" : '.* \([^- ]*\)-'"${brltty_item}"`
18455
20621
      if test -n "${brltty_item_code}"
18456
20622
      then
18505
20671
   brltty_item_entry=`expr "${brltty_items_left_screen}" : '.* \([^- ]*-'"${brltty_item}"'[^ ]*\)'`
18506
20672
   if test -z "${brltty_item_entry}"
18507
20673
   then
18508
 
      brltty_lowercase=`echo "${brltty_items_left_screen}" | sed 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ%abcdefghijklmnopqrstuvwxyz%'`
 
20674
      brltty_lowercase=`echo "${brltty_items_left_screen}" | sed -e 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ%abcdefghijklmnopqrstuvwxyz%'`
18509
20675
      brltty_item_code=`expr "${brltty_lowercase}" : '.* \([^- ]*\)-'"${brltty_item}"`
18510
20676
      if test -n "${brltty_item_code}"
18511
20677
      then
18825
20991
exec_prefix="${original_exec_prefix}"
18826
20992
 
18827
20993
 
18828
 
ac_config_commands="$ac_config_commands brltty-summary"
 
20994
ac_config_commands="$ac_config_commands item-summary"
 
20995
 
 
20996
 
 
20997
ac_config_commands="$ac_config_commands build-configure"
18829
20998
 
18830
20999
 
18831
21000
brltty_make_files="`echo "${brltty_build_directories}" | sed -e '
18832
 
s%\([^ ][^ ]*\)%\1/Makefile:prologue.mk.in:\1/Makefile.in%g
 
21001
s%\([^ ][^ ]*\)%\1/Makefile:prologue.mk:\1/Makefile.in%g
18833
21002
'`"
18834
21003
 
18835
21004
ac_config_files="$ac_config_files config.mk brltty.spec Programs/brltty-config Documents/brltty.conf Documents/brltty.1 Documents/BrlAPIref.doxy Bindings/Lisp/brlapi.lisp Bindings/Python/setup.py ${brltty_make_files}"
19254
21423
# report actual input values of CONFIG_FILES etc. instead of their
19255
21424
# values after options handling.
19256
21425
ac_log="
19257
 
This file was extended by brltty $as_me 4.3, which was
 
21426
This file was extended by brltty $as_me 4.4, which was
19258
21427
generated by GNU Autoconf 2.63.  Invocation command line was
19259
21428
 
19260
21429
  CONFIG_FILES    = $CONFIG_FILES
19317
21486
_ACEOF
19318
21487
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19319
21488
ac_cs_version="\\
19320
 
brltty config.status 4.3
 
21489
brltty config.status 4.4
19321
21490
configured by $0, generated by GNU Autoconf 2.63,
19322
21491
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19323
21492
 
19429
21598
#
19430
21599
# INIT-COMMANDS
19431
21600
#
19432
 
brltty_summary_lines="${brltty_summary_lines}"
 
21601
brltty_summary_lines='${brltty_summary_lines}'
19433
21602
 
19434
21603
 
19435
21604
_ACEOF
19442
21611
  case $ac_config_target in
19443
21612
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19444
21613
    "Programs/brlapi.h") CONFIG_HEADERS="$CONFIG_HEADERS Programs/brlapi.h" ;;
19445
 
    "brltty-summary") CONFIG_COMMANDS="$CONFIG_COMMANDS brltty-summary" ;;
 
21614
    "item-summary") CONFIG_COMMANDS="$CONFIG_COMMANDS item-summary" ;;
 
21615
    "build-configure") CONFIG_COMMANDS="$CONFIG_COMMANDS build-configure" ;;
19446
21616
    "config.mk") CONFIG_FILES="$CONFIG_FILES config.mk" ;;
19447
21617
    "brltty.spec") CONFIG_FILES="$CONFIG_FILES brltty.spec" ;;
19448
21618
    "Programs/brltty-config") CONFIG_FILES="$CONFIG_FILES Programs/brltty-config" ;;
20066
22236
 
20067
22237
 
20068
22238
  case $ac_file$ac_mode in
20069
 
    "brltty-summary":C) { $as_echo "$as_me:$LINENO: ${brltty_summary_lines}" >&5
 
22239
    "item-summary":C) { $as_echo "$as_me:$LINENO: ${brltty_summary_lines}" >&5
20070
22240
$as_echo "$as_me: ${brltty_summary_lines}" >&6;} ;;
 
22241
    "build-configure":C)    "${srcdir}/mk4build"
 
22242
 ;;
20071
22243
 
20072
22244
  esac
20073
22245
done # for ac_tag