diff options
| author | Max Krasnyansky <maxk@qualcomm.com> | 2002-05-13 18:45:11 +0000 | 
|---|---|---|
| committer | Max Krasnyansky <maxk@qualcomm.com> | 2002-05-13 18:45:11 +0000 | 
| commit | 7ef138d4d8d5042f9feaae9fb3bb3a4a947d8582 (patch) | |
| tree | e7e892dc4f8c3a420ea433bac733a2562548cee1 | |
| parent | 6524a7f07a5b73e2b34a5b8feeb8b4c4ff1fd385 (diff) | |
make file cleanup
| -rwxr-xr-x | configure | 115 | ||||
| -rw-r--r-- | configure.in | 9 | ||||
| -rw-r--r-- | tools/Makefile.am | 8 | ||||
| -rw-r--r-- | tools/Makefile.in | 67 | 
4 files changed, 115 insertions, 84 deletions
| @@ -16,6 +16,8 @@ ac_help="$ac_help  --with-bluez-libs=DIR  BlueZ libraries and header files"  ac_help="$ac_help  --with-glib=DIR  GLib libraries and header files" +ac_help="$ac_help +--enable-pcmcia Always install PCMCIA support files"  # Initialize some variables set by options.  # The variables have the same names as the options, with @@ -584,7 +586,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }  fi  echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:588: checking host system type" >&5 +echo "configure:590: checking host system type" >&5  host_alias=$host  case "$host_alias" in @@ -605,7 +607,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  echo "$ac_t""$host" 1>&6  echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:609: checking target system type" >&5 +echo "configure:611: checking target system type" >&5  target_alias=$target  case "$target_alias" in @@ -623,7 +625,7 @@ target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  echo "$ac_t""$target" 1>&6  echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:627: checking build system type" >&5 +echo "configure:629: checking build system type" >&5  build_alias=$build  case "$build_alias" in @@ -652,7 +654,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }  fi  echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:656: checking host system type" >&5 +echo "configure:658: checking host system type" >&5  host_alias=$host  case "$host_alias" in @@ -685,7 +687,7 @@ echo "$ac_t""$host" 1>&6  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"  # ./install, which can be erroneously created by make from ./install.sh.  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:689: checking for a BSD compatible install" >&5 +echo "configure:691: checking for a BSD compatible install" >&5  if test -z "$INSTALL"; then  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6 @@ -738,7 +740,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'  echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 -echo "configure:742: checking whether build environment is sane" >&5 +echo "configure:744: checking whether build environment is sane" >&5  # Just in case  sleep 1  echo timestamp > conftestfile @@ -795,7 +797,7 @@ test "$program_suffix" != NONE &&  test "$program_transform_name" = "" && program_transform_name="s,x,x,"  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:799: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "configure:801: checking whether ${MAKE-make} sets \${MAKE}" >&5  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6 @@ -841,7 +843,7 @@ EOF  missing_dir=`cd $ac_aux_dir && pwd`  echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 -echo "configure:845: checking for working aclocal" >&5 +echo "configure:847: checking for working aclocal" >&5  # Run test in a subshell; some versions of sh will print an error if  # an executable is not found, even if stderr is redirected.  # Redirect stdin to placate older versions of autoconf.  Sigh. @@ -854,7 +856,7 @@ else  fi  echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 -echo "configure:858: checking for working autoconf" >&5 +echo "configure:860: checking for working autoconf" >&5  # Run test in a subshell; some versions of sh will print an error if  # an executable is not found, even if stderr is redirected.  # Redirect stdin to placate older versions of autoconf.  Sigh. @@ -867,7 +869,7 @@ else  fi  echo $ac_n "checking for working automake""... $ac_c" 1>&6 -echo "configure:871: checking for working automake" >&5 +echo "configure:873: checking for working automake" >&5  # Run test in a subshell; some versions of sh will print an error if  # an executable is not found, even if stderr is redirected.  # Redirect stdin to placate older versions of autoconf.  Sigh. @@ -880,7 +882,7 @@ else  fi  echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 -echo "configure:884: checking for working autoheader" >&5 +echo "configure:886: checking for working autoheader" >&5  # Run test in a subshell; some versions of sh will print an error if  # an executable is not found, even if stderr is redirected.  # Redirect stdin to placate older versions of autoconf.  Sigh. @@ -893,7 +895,7 @@ else  fi  echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 -echo "configure:897: checking for working makeinfo" >&5 +echo "configure:899: checking for working makeinfo" >&5  # Run test in a subshell; some versions of sh will print an error if  # an executable is not found, even if stderr is redirected.  # Redirect stdin to placate older versions of autoconf.  Sigh. @@ -910,7 +912,7 @@ fi  # Extract the first word of "gcc", so it can be a program name with args.  set dummy gcc; ac_word=$2  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:914: checking for $ac_word" >&5 +echo "configure:916: checking for $ac_word" >&5  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6  else @@ -940,7 +942,7 @@ if test -z "$CC"; then    # Extract the first word of "cc", so it can be a program name with args.  set dummy cc; ac_word=$2  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:944: checking for $ac_word" >&5 +echo "configure:946: checking for $ac_word" >&5  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6  else @@ -991,7 +993,7 @@ fi        # Extract the first word of "cl", so it can be a program name with args.  set dummy cl; ac_word=$2  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:995: checking for $ac_word" >&5 +echo "configure:997: checking for $ac_word" >&5  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6  else @@ -1023,7 +1025,7 @@ fi  fi  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:1027: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:1029: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  ac_ext=c  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -1034,12 +1036,12 @@ cross_compiling=$ac_cv_prog_cc_cross  cat > conftest.$ac_ext << EOF -#line 1038 "configure" +#line 1040 "configure"  #include "confdefs.h"  main(){return(0);}  EOF -if { (eval echo configure:1043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    ac_cv_prog_cc_works=yes    # If we can't run a trivial program, we are probably using a cross compiler.    if (./conftest; exit) 2>/dev/null; then @@ -1065,12 +1067,12 @@ if test $ac_cv_prog_cc_works = no; then    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }  fi  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:1069: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:1071: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  cross_compiling=$ac_cv_prog_cc_cross  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1074: checking whether we are using GNU C" >&5 +echo "configure:1076: checking whether we are using GNU C" >&5  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6  else @@ -1079,7 +1081,7 @@ else    yes;  #endif  EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then    ac_cv_prog_gcc=yes  else    ac_cv_prog_gcc=no @@ -1098,7 +1100,7 @@ ac_test_CFLAGS="${CFLAGS+set}"  ac_save_CFLAGS="$CFLAGS"  CFLAGS=  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1102: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:1104: checking whether ${CC-cc} accepts -g" >&5  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6  else @@ -1134,7 +1136,7 @@ do  # Extract the first word of "$ac_prog", so it can be a program name with args.  set dummy $ac_prog; ac_word=$2  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1138: checking for $ac_word" >&5 +echo "configure:1140: checking for $ac_word" >&5  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6  else @@ -1175,7 +1177,7 @@ done  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"  # ./install, which can be erroneously created by make from ./install.sh.  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:1179: checking for a BSD compatible install" >&5 +echo "configure:1181: checking for a BSD compatible install" >&5  if test -z "$INSTALL"; then  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6 @@ -1236,7 +1238,7 @@ fi  # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.  set dummy ${ac_tool_prefix}ld; ac_word=$2  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1240: checking for $ac_word" >&5 +echo "configure:1242: checking for $ac_word" >&5  if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6  else @@ -1268,7 +1270,7 @@ if test -n "$ac_tool_prefix"; then    # Extract the first word of "ld", so it can be a program name with args.  set dummy ld; ac_word=$2  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1272: checking for $ac_word" >&5 +echo "configure:1274: checking for $ac_word" >&5  if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6  else @@ -1303,7 +1305,7 @@ fi  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.  set dummy ${ac_tool_prefix}ar; ac_word=$2  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1307: checking for $ac_word" >&5 +echo "configure:1309: checking for $ac_word" >&5  if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6  else @@ -1335,7 +1337,7 @@ if test -n "$ac_tool_prefix"; then    # Extract the first word of "ar", so it can be a program name with args.  set dummy ar; ac_word=$2  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1339: checking for $ac_word" >&5 +echo "configure:1341: checking for $ac_word" >&5  if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6  else @@ -1373,7 +1375,7 @@ do  # Extract the first word of "$ac_prog", so it can be a program name with args.  set dummy $ac_prog; ac_word=$2  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1377: checking for $ac_word" >&5 +echo "configure:1379: checking for $ac_word" >&5  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6  else @@ -1404,7 +1406,7 @@ done  test -n "$YACC" || YACC="yacc"  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:1408: checking how to run the C preprocessor" >&5 +echo "configure:1410: checking how to run the C preprocessor" >&5  # On Suns, sometimes $CPP names a directory.  if test -n "$CPP" && test -d "$CPP"; then    CPP= @@ -1419,13 +1421,13 @@ else    # On the NeXT, cc -E runs the code through the compiler's parser,    # not just through cpp.    cat > conftest.$ac_ext <<EOF -#line 1423 "configure" +#line 1425 "configure"  #include "confdefs.h"  #include <assert.h>  Syntax Error  EOF  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  if test -z "$ac_err"; then    : @@ -1436,13 +1438,13 @@ else    rm -rf conftest*    CPP="${CC-cc} -E -traditional-cpp"    cat > conftest.$ac_ext <<EOF -#line 1440 "configure" +#line 1442 "configure"  #include "confdefs.h"  #include <assert.h>  Syntax Error  EOF  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  if test -z "$ac_err"; then    : @@ -1453,13 +1455,13 @@ else    rm -rf conftest*    CPP="${CC-cc} -nologo -E"    cat > conftest.$ac_ext <<EOF -#line 1457 "configure" +#line 1459 "configure"  #include "confdefs.h"  #include <assert.h>  Syntax Error  EOF  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  if test -z "$ac_err"; then    : @@ -1489,7 +1491,7 @@ do  # Extract the first word of "$ac_prog", so it can be a program name with args.  set dummy $ac_prog; ac_word=$2  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1493: checking for $ac_word" >&5 +echo "configure:1495: checking for $ac_word" >&5  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6  else @@ -1522,7 +1524,7 @@ test -n "$LEX" || LEX=""$missing_dir/missing flex""  # Extract the first word of "flex", so it can be a program name with args.  set dummy flex; ac_word=$2  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1526: checking for $ac_word" >&5 +echo "configure:1528: checking for $ac_word" >&5  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6  else @@ -1556,7 +1558,7 @@ then    *) ac_lib=l ;;    esac    echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 -echo "configure:1560: checking for yywrap in -l$ac_lib" >&5 +echo "configure:1562: checking for yywrap in -l$ac_lib" >&5  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6 @@ -1564,7 +1566,7 @@ else    ac_save_LIBS="$LIBS"  LIBS="-l$ac_lib  $LIBS"  cat > conftest.$ac_ext <<EOF -#line 1568 "configure" +#line 1570 "configure"  #include "confdefs.h"  /* Override any gcc2 internal prototype to avoid an error.  */  /* We use char because int might match the return type of a gcc2 @@ -1575,7 +1577,7 @@ int main() {  yywrap()  ; return 0; }  EOF -if { (eval echo configure:1579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    rm -rf conftest*    eval "ac_cv_lib_$ac_lib_var=yes"  else @@ -1598,7 +1600,7 @@ fi  fi  echo $ac_n "checking lex output file root""... $ac_c" 1>&6 -echo "configure:1602: checking lex output file root" >&5 +echo "configure:1604: checking lex output file root" >&5  if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6  else @@ -1619,7 +1621,7 @@ echo "$ac_t""$ac_cv_prog_lex_root" 1>&6  LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root  echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 -echo "configure:1623: checking whether yytext is a pointer" >&5 +echo "configure:1625: checking whether yytext is a pointer" >&5  if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6  else @@ -1631,14 +1633,14 @@ echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c  ac_save_LIBS="$LIBS"  LIBS="$LIBS $LEXLIB"  cat > conftest.$ac_ext <<EOF -#line 1635 "configure" +#line 1637 "configure"  #include "confdefs.h"  `cat $LEX_OUTPUT_ROOT.c`  int main() {  ; return 0; }  EOF -if { (eval echo configure:1642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    rm -rf conftest*    ac_cv_prog_lex_yytext_pointer=yes  else @@ -1678,7 +1680,7 @@ fi      echo $ac_n "checking "for bluetooth.h"""... $ac_c" 1>&6 -echo "configure:1682: checking "for bluetooth.h"" >&5  +echo "configure:1684: checking "for bluetooth.h"" >&5       ac_hdr_found=no      for p in $BLUEZ_INCDIR; do @@ -1715,7 +1717,7 @@ echo "configure:1682: checking "for bluetooth.h"" >&5      echo $ac_n "checking "for libbluetooth"""... $ac_c" 1>&6 -echo "configure:1719: checking "for libbluetooth"" >&5 +echo "configure:1721: checking "for libbluetooth"" >&5      ac_save_LDFLAGS=$LDFLAGS @@ -1723,7 +1725,7 @@ echo "configure:1719: checking "for libbluetooth"" >&5      for p in $BLUEZ_LIBDIR; do  	LDFLAGS="-L$p -lbluetooth"  	cat > conftest.$ac_ext <<EOF -#line 1727 "configure" +#line 1729 "configure"  #include "confdefs.h"  /* Override any gcc2 internal prototype to avoid an error.  */  /* We use char because int might match the return type of a gcc2 @@ -1734,7 +1736,7 @@ int main() {  hci_open_dev()  ; return 0; }  EOF -if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    rm -rf conftest*    LIBS="$LIBS -L$p -lbluetooth"       	       ac_lib_found=yes @@ -1773,7 +1775,7 @@ else              # Extract the first word of "glib-config", so it can be a program name with args.  set dummy glib-config; ac_word=$2  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1777: checking for $ac_word" >&5 +echo "configure:1779: checking for $ac_word" >&5  if eval "test \"`echo '$''{'ac_cv_prog_GLIB'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6  else @@ -1823,7 +1825,7 @@ fi  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"  # ./install, which can be erroneously created by make from ./install.sh.  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:1827: checking for a BSD compatible install" >&5 +echo "configure:1829: checking for a BSD compatible install" >&5  if test -z "$INSTALL"; then  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then    echo $ac_n "(cached) $ac_c" 1>&6 @@ -1902,17 +1904,24 @@ if test "$cross_compiling" != yes; then  fi -if test "$cross_compiling" != yes; then -    +# Check whether --enable-pcmcia or --disable-pcmcia was given. +if test "${enable_pcmcia+set}" = set; then +  enableval="$enable_pcmcia" +  PCMCIA=pcmcia +else +   if test "$cross_compiling" != yes; then +                 if test -d /etc/pcmcia; then  	PCMCIA=pcmcia      else  	PCMCIA=      fi +    fi   fi +      for i in CFLAGS CPPFLAGS LDFLAGS LIBS; do  	eval o=\$$i  	o=`echo $o | sed 's#.\.\./#&../#g'` diff --git a/configure.in b/configure.in index 6de2df29..21515cbd 100644 --- a/configure.in +++ b/configure.in @@ -82,9 +82,12 @@ if test "$cross_compiling" != yes; then  fi  dnl Check for PCMCIA  -if test "$cross_compiling" != yes; then -   AC_TEST_DIR(/etc/pcmcia, PCMCIA=pcmcia, PCMCIA=) -fi +AC_ARG_ENABLE(pcmcia, +    --enable-pcmcia Always install PCMCIA support files, +    [PCMCIA=pcmcia], +    [ if test "$cross_compiling" != yes; then +           AC_TEST_DIR(/etc/pcmcia, PCMCIA=pcmcia, PCMCIA=) +    fi ])  AC_ADD_DIRLEVEL(CFLAGS CPPFLAGS LDFLAGS LIBS) diff --git a/tools/Makefile.am b/tools/Makefile.am index 53e3e21d..f8312834 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -9,10 +9,4 @@ bin_PROGRAMS  = hcitool l2ping  man_MANS      = hciattach.8 l2ping.8 -CLEANFILES    = l2test.o l2test - - -all-local: l2test - -l2test: l2test.o -	$(LINK) l2test.o $(LDFLAGS) $(LIBS) +noinst_PROGRAMS	= l2test scotest diff --git a/tools/Makefile.in b/tools/Makefile.in index fae41912..9070c880 100644 --- a/tools/Makefile.in +++ b/tools/Makefile.in @@ -88,10 +88,10 @@ bin_PROGRAMS = hcitool l2ping  man_MANS = hciattach.8 l2ping.8 -CLEANFILES = l2test.o l2test +noinst_PROGRAMS = l2test scotest  mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs  CONFIG_CLEAN_FILES =  -PROGRAMS =  $(bin_PROGRAMS) $(sbin_PROGRAMS) +PROGRAMS =  $(bin_PROGRAMS) $(noinst_PROGRAMS) $(sbin_PROGRAMS)  DEFS = @DEFS@ -I. -I$(srcdir)  @@ -108,6 +108,16 @@ l2ping_OBJECTS =  l2ping.o  l2ping_LDADD = $(LDADD)  l2ping_DEPENDENCIES =   l2ping_LDFLAGS =  +l2test_SOURCES = l2test.c +l2test_OBJECTS =  l2test.o +l2test_LDADD = $(LDADD) +l2test_DEPENDENCIES =  +l2test_LDFLAGS =  +scotest_SOURCES = scotest.c +scotest_OBJECTS =  scotest.o +scotest_LDADD = $(LDADD) +scotest_DEPENDENCIES =  +scotest_LDFLAGS =   hciattach_SOURCES = hciattach.c  hciattach_OBJECTS =  hciattach.o  hciattach_LDADD = $(LDADD) @@ -134,9 +144,9 @@ DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)  TAR = gtar  GZIP_ENV = --best  DEP_FILES =  .deps/hciattach.P .deps/hciconfig.P .deps/hcitool.P \ -.deps/l2ping.P -SOURCES = hcitool.c l2ping.c hciattach.c hciconfig.c -OBJECTS = hcitool.o l2ping.o hciattach.o hciconfig.o +.deps/l2ping.P .deps/l2test.P .deps/scotest.P +SOURCES = hcitool.c l2ping.c l2test.c scotest.c hciattach.c hciconfig.c +OBJECTS = hcitool.o l2ping.o l2test.o scotest.o hciattach.o hciconfig.o  all: all-redirect  .SUFFIXES: @@ -174,6 +184,15 @@ uninstall-binPROGRAMS:  	  rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \  	done +mostlyclean-noinstPROGRAMS: + +clean-noinstPROGRAMS: +	-test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) + +distclean-noinstPROGRAMS: + +maintainer-clean-noinstPROGRAMS: +  mostlyclean-sbinPROGRAMS:  clean-sbinPROGRAMS: @@ -223,6 +242,14 @@ l2ping: $(l2ping_OBJECTS) $(l2ping_DEPENDENCIES)  	@rm -f l2ping  	$(LINK) $(l2ping_LDFLAGS) $(l2ping_OBJECTS) $(l2ping_LDADD) $(LIBS) +l2test: $(l2test_OBJECTS) $(l2test_DEPENDENCIES) +	@rm -f l2test +	$(LINK) $(l2test_LDFLAGS) $(l2test_OBJECTS) $(l2test_LDADD) $(LIBS) + +scotest: $(scotest_OBJECTS) $(scotest_DEPENDENCIES) +	@rm -f scotest +	$(LINK) $(scotest_LDFLAGS) $(scotest_OBJECTS) $(scotest_LDADD) $(LIBS) +  hciattach: $(hciattach_OBJECTS) $(hciattach_DEPENDENCIES)  	@rm -f hciattach  	$(LINK) $(hciattach_LDFLAGS) $(hciattach_OBJECTS) $(hciattach_LDADD) $(LIBS) @@ -370,7 +397,7 @@ install-am: all-am  install: install-am  uninstall-am: uninstall-binPROGRAMS uninstall-sbinPROGRAMS uninstall-man  uninstall: uninstall-am -all-am: Makefile $(PROGRAMS) $(MANS) all-local +all-am: Makefile $(PROGRAMS) $(MANS)  all-redirect: all-am  install-strip:  	$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install @@ -382,31 +409,32 @@ installdirs:  mostlyclean-generic:  clean-generic: -	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)  distclean-generic:  	-rm -f Makefile $(CONFIG_CLEAN_FILES)  	-rm -f config.cache config.log stamp-h stamp-h[0-9]*  maintainer-clean-generic: -mostlyclean-am:  mostlyclean-binPROGRAMS mostlyclean-sbinPROGRAMS \ -		mostlyclean-compile mostlyclean-tags mostlyclean-depend \ -		mostlyclean-generic +mostlyclean-am:  mostlyclean-binPROGRAMS mostlyclean-noinstPROGRAMS \ +		mostlyclean-sbinPROGRAMS mostlyclean-compile \ +		mostlyclean-tags mostlyclean-depend mostlyclean-generic  mostlyclean: mostlyclean-am -clean-am:  clean-binPROGRAMS clean-sbinPROGRAMS clean-compile clean-tags \ -		clean-depend clean-generic mostlyclean-am +clean-am:  clean-binPROGRAMS clean-noinstPROGRAMS clean-sbinPROGRAMS \ +		clean-compile clean-tags clean-depend clean-generic \ +		mostlyclean-am  clean: clean-am -distclean-am:  distclean-binPROGRAMS distclean-sbinPROGRAMS \ -		distclean-compile distclean-tags distclean-depend \ -		distclean-generic clean-am +distclean-am:  distclean-binPROGRAMS distclean-noinstPROGRAMS \ +		distclean-sbinPROGRAMS distclean-compile distclean-tags \ +		distclean-depend distclean-generic clean-am  distclean: distclean-am  maintainer-clean-am:  maintainer-clean-binPROGRAMS \ +		maintainer-clean-noinstPROGRAMS \  		maintainer-clean-sbinPROGRAMS maintainer-clean-compile \  		maintainer-clean-tags maintainer-clean-depend \  		maintainer-clean-generic distclean-am @@ -417,6 +445,8 @@ maintainer-clean: maintainer-clean-am  .PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \  maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ +mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \ +clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \  mostlyclean-sbinPROGRAMS distclean-sbinPROGRAMS clean-sbinPROGRAMS \  maintainer-clean-sbinPROGRAMS uninstall-sbinPROGRAMS \  install-sbinPROGRAMS mostlyclean-compile distclean-compile \ @@ -426,16 +456,11 @@ clean-tags maintainer-clean-tags distdir mostlyclean-depend \  distclean-depend clean-depend maintainer-clean-depend info-am info \  dvi-am dvi check check-am installcheck-am installcheck install-exec-am \  install-exec install-data-am install-data install-am install \ -uninstall-am uninstall all-local all-redirect all-am all installdirs \ +uninstall-am uninstall all-redirect all-am all installdirs \  mostlyclean-generic distclean-generic clean-generic \  maintainer-clean-generic clean mostlyclean distclean maintainer-clean -all-local: l2test - -l2test: l2test.o -	$(LINK) l2test.o $(LDFLAGS) $(LIBS) -  # Tell versions [3.59,3.63) of GNU make to not export all variables.  # Otherwise a system limit (for SysV at least) may be exceeded.  .NOEXPORT: | 
