Changeset 799

Show
Ignore:
Timestamp:
05/17/07 07:23:46 (18 months ago)
Author:
michael
Message:

compile error on m68k fixed (debian bug 405898)

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r791 r799  
    63376337else 
    63386338  has_gd="false" 
     6339fi 
     6340 
     6341done 
     6342 
     6343 
     6344# check for sys/io.h (RouterBoard driver) 
     6345 
     6346for ac_header in sys/io.h 
     6347do 
     6348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 
     6349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 
     6350  { echo "$as_me:$LINENO: checking for $ac_header" >&5 
     6351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 
     6352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 
     6353  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6354fi 
     6355ac_res=`eval echo '${'$as_ac_Header'}'` 
     6356         { echo "$as_me:$LINENO: result: $ac_res" >&5 
     6357echo "${ECHO_T}$ac_res" >&6; } 
     6358else 
     6359  # Is the header compilable? 
     6360{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 
     6361echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 
     6362cat >conftest.$ac_ext <<_ACEOF 
     6363/* confdefs.h.  */ 
     6364_ACEOF 
     6365cat confdefs.h >>conftest.$ac_ext 
     6366cat >>conftest.$ac_ext <<_ACEOF 
     6367/* end confdefs.h.  */ 
     6368$ac_includes_default 
     6369#include <$ac_header> 
     6370_ACEOF 
     6371rm -f conftest.$ac_objext 
     6372if { (ac_try="$ac_compile" 
     6373case "(($ac_try" in 
     6374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     6375  *) ac_try_echo=$ac_try;; 
     6376esac 
     6377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
     6378  (eval "$ac_compile") 2>conftest.er1 
     6379  ac_status=$? 
     6380  grep -v '^ *+' conftest.er1 >conftest.err 
     6381  rm -f conftest.er1 
     6382  cat conftest.err >&5 
     6383  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6384  (exit $ac_status); } && { 
     6385   test -z "$ac_c_werror_flag" || 
     6386   test ! -s conftest.err 
     6387       } && test -s conftest.$ac_objext; then 
     6388  ac_header_compiler=yes 
     6389else 
     6390  echo "$as_me: failed program was:" >&5 
     6391sed 's/^/| /' conftest.$ac_ext >&5 
     6392 
     6393  ac_header_compiler=no 
     6394fi 
     6395 
     6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     6397{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     6398echo "${ECHO_T}$ac_header_compiler" >&6; } 
     6399 
     6400# Is the header present? 
     6401{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 
     6402echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 
     6403cat >conftest.$ac_ext <<_ACEOF 
     6404/* confdefs.h.  */ 
     6405_ACEOF 
     6406cat confdefs.h >>conftest.$ac_ext 
     6407cat >>conftest.$ac_ext <<_ACEOF 
     6408/* end confdefs.h.  */ 
     6409#include <$ac_header> 
     6410_ACEOF 
     6411if { (ac_try="$ac_cpp conftest.$ac_ext" 
     6412case "(($ac_try" in 
     6413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     6414  *) ac_try_echo=$ac_try;; 
     6415esac 
     6416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
     6417  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 
     6418  ac_status=$? 
     6419  grep -v '^ *+' conftest.er1 >conftest.err 
     6420  rm -f conftest.er1 
     6421  cat conftest.err >&5 
     6422  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6423  (exit $ac_status); } >/dev/null && { 
     6424   test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 
     6425   test ! -s conftest.err 
     6426       }; then 
     6427  ac_header_preproc=yes 
     6428else 
     6429  echo "$as_me: failed program was:" >&5 
     6430sed 's/^/| /' conftest.$ac_ext >&5 
     6431 
     6432  ac_header_preproc=no 
     6433fi 
     6434 
     6435rm -f conftest.err conftest.$ac_ext 
     6436{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     6437echo "${ECHO_T}$ac_header_preproc" >&6; } 
     6438 
     6439# So?  What about this header? 
     6440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 
     6441  yes:no: ) 
     6442    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 
     6443echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 
     6444    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 
     6445echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 
     6446    ac_header_preproc=yes 
     6447    ;; 
     6448  no:yes:* ) 
     6449    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 
     6450echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 
     6451    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 
     6452echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} 
     6453    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 
     6454echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 
     6455    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 
     6456echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} 
     6457    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 
     6458echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 
     6459    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 
     6460echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 
     6461    ( cat <<\_ASBOX 
     6462## ---------------------------------------------------- ## 
     6463## Report this to lcd4linux-users@lists.sourceforge.net ## 
     6464## ---------------------------------------------------- ## 
     6465_ASBOX 
     6466     ) | sed "s/^/$as_me: WARNING:     /" >&2 
     6467    ;; 
     6468esac 
     6469{ echo "$as_me:$LINENO: checking for $ac_header" >&5 
     6470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 
     6471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 
     6472  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6473else 
     6474  eval "$as_ac_Header=\$ac_header_preproc" 
     6475fi 
     6476ac_res=`eval echo '${'$as_ac_Header'}'` 
     6477         { echo "$as_me:$LINENO: result: $ac_res" >&5 
     6478echo "${ECHO_T}$ac_res" >&6; } 
     6479 
     6480fi 
     6481if test `eval echo '${'$as_ac_Header'}'` = yes; then 
     6482  cat >>confdefs.h <<_ACEOF 
     6483#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 
     6484_ACEOF 
     6485 has_io_h="true" 
     6486else 
     6487  has_io_h="false" 
    63396488fi 
    63406489 
     
    76867835 
    76877836if test "$ROUTERBOARD" = "yes"; then 
    7688    TEXT="yes" 
    7689    GPIO="yes" 
    7690    DRIVERS="$DRIVERS drv_RouterBoard.o" 
     7837   if test "$has_io_h" = "true"; then 
     7838      TEXT="yes" 
     7839      GPIO="yes" 
     7840      DRIVERS="$DRIVERS drv_RouterBoard.o" 
    76917841 
    76927842cat >>confdefs.h <<\_ACEOF 
     
    76947844_ACEOF 
    76957845 
     7846   else 
     7847      { echo "$as_me:$LINENO: WARNING: sys/io.h not found: RouterBoard driver disabled" >&5 
     7848echo "$as_me: WARNING: sys/io.h not found: RouterBoard driver disabled" >&2;} 
     7849   fi 
    76967850fi 
    76977851 
     
    1070210856 
    1070310857 
    10704  
    10705 for ac_header in sys/io.h asm/io.h 
     10858for ac_header in asm/io.h 
    1070610859do 
    1070710860as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 
  • trunk/configure.in

    r767 r799  
    6666AC_CHECK_HEADERS(gd/gd.h gd.h, [has_gd="true"; break], [has_gd="false"]) 
    6767 
     68# check for sys/io.h (RouterBoard driver) 
     69AC_CHECK_HEADERS(sys/io.h, [has_io_h="true"], [has_io_h="false"]) 
     70 
    6871# check for usb.h 
    6972AC_CHECK_HEADERS(usb.h, [has_usb="true"], [has_usb="false"]) 
     
    98101AC_HEADER_STDC 
    99102AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h sys/vfs.h syslog.h termios.h unistd.h]) 
    100 AC_CHECK_HEADERS(sys/io.h asm/io.h) 
     103AC_CHECK_HEADERS(asm/io.h) 
    101104AC_CHECK_HEADERS(linux/parport.h linux/ppdev.h) 
    102105AC_CHECK_HEADERS(asm/msr.h) 
  • trunk/drivers.m4

    r791 r799  
    421421 
    422422if test "$ROUTERBOARD" = "yes"; then 
    423    TEXT="yes" 
    424    GPIO="yes" 
    425    DRIVERS="$DRIVERS drv_RouterBoard.o" 
    426    AC_DEFINE(WITH_ROUTERBOARD,1,[RouterBoard driver]) 
     423   if test "$has_io_h" = "true"; then 
     424      TEXT="yes" 
     425      GPIO="yes" 
     426      DRIVERS="$DRIVERS drv_RouterBoard.o" 
     427      AC_DEFINE(WITH_ROUTERBOARD,1,[RouterBoard driver]) 
     428   else 
     429      AC_MSG_WARN(sys/io.h not found: RouterBoard driver disabled) 
     430   fi 
    427431fi 
    428432