comparison configure @ 4440:e4225b6d9389

AC_CHECK_LIB needs a function symbol. <87zls98qtk.fsf@uwakimon.sk.tsukuba.ac.jp>
author Stephen J. Turnbull <stephen@xemacs.org>
date Fri, 04 Apr 2008 10:48:58 -0700
parents 42711a251efd
children ac6231e0c1df
comparison
equal deleted inserted replaced
4439:f4eb31866c38 4440:e4225b6d9389
25699 ac_res=`eval echo '${'$as_ac_Lib'}'` 25699 ac_res=`eval echo '${'$as_ac_Lib'}'`
25700 { echo "$as_me:$LINENO: result: $ac_res" >&5 25700 { echo "$as_me:$LINENO: result: $ac_res" >&5
25701 echo "${ECHO_T}$ac_res" >&6; } 25701 echo "${ECHO_T}$ac_res" >&6; }
25702 if test `eval echo '${'$as_ac_Lib'}'` = yes; then 25702 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25703 25703
25704 as_ac_Lib=`echo "ac_cv_lib_$athena_variant''_threeDClassRec" | $as_tr_sh` 25704 as_ac_Lib=`echo "ac_cv_lib_$athena_variant''_XawSme3dComputeTopShadowRGB" | $as_tr_sh`
25705 { echo "$as_me:$LINENO: checking for threeDClassRec in -l$athena_variant" >&5 25705 { echo "$as_me:$LINENO: checking for XawSme3dComputeTopShadowRGB in -l$athena_variant" >&5
25706 echo $ECHO_N "checking for threeDClassRec in -l$athena_variant... $ECHO_C" >&6; } 25706 echo $ECHO_N "checking for XawSme3dComputeTopShadowRGB in -l$athena_variant... $ECHO_C" >&6; }
25707 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then 25707 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25708 echo $ECHO_N "(cached) $ECHO_C" >&6 25708 echo $ECHO_N "(cached) $ECHO_C" >&6
25709 else 25709 else
25710 ac_check_lib_save_LIBS=$LIBS 25710 ac_check_lib_save_LIBS=$LIBS
25711 LIBS="-l$athena_variant $LIBS" 25711 LIBS="-l$athena_variant $LIBS"
25720 Use char because int might match the return type of a GCC 25720 Use char because int might match the return type of a GCC
25721 builtin and then its argument prototype would still apply. */ 25721 builtin and then its argument prototype would still apply. */
25722 #ifdef __cplusplus 25722 #ifdef __cplusplus
25723 extern "C" 25723 extern "C"
25724 #endif 25724 #endif
25725 char threeDClassRec (); 25725 char XawSme3dComputeTopShadowRGB ();
25726 int 25726 int
25727 main () 25727 main ()
25728 { 25728 {
25729 return threeDClassRec (); 25729 return XawSme3dComputeTopShadowRGB ();
25730 ; 25730 ;
25731 return 0; 25731 return 0;
25732 } 25732 }
25733 _ACEOF 25733 _ACEOF
25734 rm -f conftest.$ac_objext conftest$ac_exeext 25734 rm -f conftest.$ac_objext conftest$ac_exeext
25776 { echo "$as_me:$LINENO: WARNING: Could not find an Athena widget library." >&5 25776 { echo "$as_me:$LINENO: WARNING: Could not find an Athena widget library." >&5
25777 echo "$as_me: WARNING: Could not find an Athena widget library." >&2;} 25777 echo "$as_me: WARNING: Could not find an Athena widget library." >&2;}
25778 fi 25778 fi
25779 25779
25780 else 25780 else
25781 as_ac_Lib=`echo "ac_cv_lib_$athena_variant''_threeDClassRec" | $as_tr_sh` 25781 as_ac_Lib=`echo "ac_cv_lib_$athena_variant''_XawSme3dComputeTopShadowRGB" | $as_tr_sh`
25782 { echo "$as_me:$LINENO: checking for threeDClassRec in -l$athena_variant" >&5 25782 { echo "$as_me:$LINENO: checking for XawSme3dComputeTopShadowRGB in -l$athena_variant" >&5
25783 echo $ECHO_N "checking for threeDClassRec in -l$athena_variant... $ECHO_C" >&6; } 25783 echo $ECHO_N "checking for XawSme3dComputeTopShadowRGB in -l$athena_variant... $ECHO_C" >&6; }
25784 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then 25784 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25785 echo $ECHO_N "(cached) $ECHO_C" >&6 25785 echo $ECHO_N "(cached) $ECHO_C" >&6
25786 else 25786 else
25787 ac_check_lib_save_LIBS=$LIBS 25787 ac_check_lib_save_LIBS=$LIBS
25788 LIBS="-l$athena_variant $LIBS" 25788 LIBS="-l$athena_variant $LIBS"
25797 Use char because int might match the return type of a GCC 25797 Use char because int might match the return type of a GCC
25798 builtin and then its argument prototype would still apply. */ 25798 builtin and then its argument prototype would still apply. */
25799 #ifdef __cplusplus 25799 #ifdef __cplusplus
25800 extern "C" 25800 extern "C"
25801 #endif 25801 #endif
25802 char threeDClassRec (); 25802 char XawSme3dComputeTopShadowRGB ();
25803 int 25803 int
25804 main () 25804 main ()
25805 { 25805 {
25806 return threeDClassRec (); 25806 return XawSme3dComputeTopShadowRGB ();
25807 ; 25807 ;
25808 return 0; 25808 return 0;
25809 } 25809 }
25810 _ACEOF 25810 _ACEOF
25811 rm -f conftest.$ac_objext conftest$ac_exeext 25811 rm -f conftest.$ac_objext conftest$ac_exeext
25842 { echo "$as_me:$LINENO: result: $ac_res" >&5 25842 { echo "$as_me:$LINENO: result: $ac_res" >&5
25843 echo "${ECHO_T}$ac_res" >&6; } 25843 echo "${ECHO_T}$ac_res" >&6; }
25844 if test `eval echo '${'$as_ac_Lib'}'` = yes; then 25844 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25845 athena_lib=$athena_variant 25845 athena_lib=$athena_variant
25846 else 25846 else
25847 { echo "$as_me:$LINENO: checking for threeDClassRec in -lXaw" >&5 25847 { echo "$as_me:$LINENO: checking for XawSme3dComputeTopShadowRGB in -lXaw" >&5
25848 echo $ECHO_N "checking for threeDClassRec in -lXaw... $ECHO_C" >&6; } 25848 echo $ECHO_N "checking for XawSme3dComputeTopShadowRGB in -lXaw... $ECHO_C" >&6; }
25849 if test "${ac_cv_lib_Xaw_threeDClassRec+set}" = set; then 25849 if test "${ac_cv_lib_Xaw_XawSme3dComputeTopShadowRGB+set}" = set; then
25850 echo $ECHO_N "(cached) $ECHO_C" >&6 25850 echo $ECHO_N "(cached) $ECHO_C" >&6
25851 else 25851 else
25852 ac_check_lib_save_LIBS=$LIBS 25852 ac_check_lib_save_LIBS=$LIBS
25853 LIBS="-lXaw $LIBS" 25853 LIBS="-lXaw $LIBS"
25854 cat >conftest.$ac_ext <<_ACEOF 25854 cat >conftest.$ac_ext <<_ACEOF
25862 Use char because int might match the return type of a GCC 25862 Use char because int might match the return type of a GCC
25863 builtin and then its argument prototype would still apply. */ 25863 builtin and then its argument prototype would still apply. */
25864 #ifdef __cplusplus 25864 #ifdef __cplusplus
25865 extern "C" 25865 extern "C"
25866 #endif 25866 #endif
25867 char threeDClassRec (); 25867 char XawSme3dComputeTopShadowRGB ();
25868 int 25868 int
25869 main () 25869 main ()
25870 { 25870 {
25871 return threeDClassRec (); 25871 return XawSme3dComputeTopShadowRGB ();
25872 ; 25872 ;
25873 return 0; 25873 return 0;
25874 } 25874 }
25875 _ACEOF 25875 _ACEOF
25876 rm -f conftest.$ac_objext conftest$ac_exeext 25876 rm -f conftest.$ac_objext conftest$ac_exeext
25889 (exit $ac_status); } && { 25889 (exit $ac_status); } && {
25890 test -z "$ac_c_werror_flag" || 25890 test -z "$ac_c_werror_flag" ||
25891 test ! -s conftest.err 25891 test ! -s conftest.err
25892 } && test -s conftest$ac_exeext && 25892 } && test -s conftest$ac_exeext &&
25893 $as_test_x conftest$ac_exeext; then 25893 $as_test_x conftest$ac_exeext; then
25894 ac_cv_lib_Xaw_threeDClassRec=yes 25894 ac_cv_lib_Xaw_XawSme3dComputeTopShadowRGB=yes
25895 else 25895 else
25896 echo "$as_me: failed program was:" >&5 25896 echo "$as_me: failed program was:" >&5
25897 sed 's/^/| /' conftest.$ac_ext >&5 25897 sed 's/^/| /' conftest.$ac_ext >&5
25898 25898
25899 ac_cv_lib_Xaw_threeDClassRec=no 25899 ac_cv_lib_Xaw_XawSme3dComputeTopShadowRGB=no
25900 fi 25900 fi
25901 25901
25902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25903 conftest$ac_exeext conftest.$ac_ext 25903 conftest$ac_exeext conftest.$ac_ext
25904 LIBS=$ac_check_lib_save_LIBS 25904 LIBS=$ac_check_lib_save_LIBS
25905 fi 25905 fi
25906 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_threeDClassRec" >&5 25906 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawSme3dComputeTopShadowRGB" >&5
25907 echo "${ECHO_T}$ac_cv_lib_Xaw_threeDClassRec" >&6; } 25907 echo "${ECHO_T}$ac_cv_lib_Xaw_XawSme3dComputeTopShadowRGB" >&6; }
25908 if test $ac_cv_lib_Xaw_threeDClassRec = yes; then 25908 if test $ac_cv_lib_Xaw_XawSme3dComputeTopShadowRGB = yes; then
25909 25909
25910 athena_lib=Xaw; 25910 athena_lib=Xaw;
25911 { echo "$as_me:$LINENO: WARNING: Assuming that libXaw is actually $athena_variant." >&5 25911 { echo "$as_me:$LINENO: WARNING: Assuming that libXaw is actually $athena_variant." >&5
25912 echo "$as_me: WARNING: Assuming that libXaw is actually $athena_variant." >&2;}; 25912 echo "$as_me: WARNING: Assuming that libXaw is actually $athena_variant." >&2;};
25913 25913