Mercurial > emacs
comparison configure @ 57864:eee018b36c35
* configure.in (HAVE_GTK_FILE_CHOOSER, $HAVE_GTK_FILE_SELECTION): New
tests for new and old GTK file dialogs.
* configure: Rebuild
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Tue, 02 Nov 2004 07:33:51 +0000 |
parents | a17f324d7b7f |
children | 2cc8d9bbb72b |
comparison
equal
deleted
inserted
replaced
57863:4dd40b6f4116 | 57864:eee018b36c35 |
---|---|
9904 | 9904 |
9905 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then | 9905 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then |
9906 | 9906 |
9907 cat >>confdefs.h <<\_ACEOF | 9907 cat >>confdefs.h <<\_ACEOF |
9908 #define HAVE_GTK_MULTIDISPLAY 1 | 9908 #define HAVE_GTK_MULTIDISPLAY 1 |
9909 _ACEOF | |
9910 | |
9911 fi | |
9912 HAVE_GTK_FILE_SELECTION=no | |
9913 | |
9914 for ac_func in gtk_file_selection_new | |
9915 do | |
9916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9917 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9919 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9920 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9921 else | |
9922 cat >conftest.$ac_ext <<_ACEOF | |
9923 /* confdefs.h. */ | |
9924 _ACEOF | |
9925 cat confdefs.h >>conftest.$ac_ext | |
9926 cat >>conftest.$ac_ext <<_ACEOF | |
9927 /* end confdefs.h. */ | |
9928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9929 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9930 #define $ac_func innocuous_$ac_func | |
9931 | |
9932 /* System header to define __stub macros and hopefully few prototypes, | |
9933 which can conflict with char $ac_func (); below. | |
9934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9935 <limits.h> exists even on freestanding compilers. */ | |
9936 | |
9937 #ifdef __STDC__ | |
9938 # include <limits.h> | |
9939 #else | |
9940 # include <assert.h> | |
9941 #endif | |
9942 | |
9943 #undef $ac_func | |
9944 | |
9945 /* Override any gcc2 internal prototype to avoid an error. */ | |
9946 #ifdef __cplusplus | |
9947 extern "C" | |
9948 { | |
9949 #endif | |
9950 /* We use char because int might match the return type of a gcc2 | |
9951 builtin and then its argument prototype would still apply. */ | |
9952 char $ac_func (); | |
9953 /* The GNU C library defines this for functions which it implements | |
9954 to always fail with ENOSYS. Some functions are actually named | |
9955 something starting with __ and the normal name is an alias. */ | |
9956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9957 choke me | |
9958 #else | |
9959 char (*f) () = $ac_func; | |
9960 #endif | |
9961 #ifdef __cplusplus | |
9962 } | |
9963 #endif | |
9964 | |
9965 int | |
9966 main () | |
9967 { | |
9968 return f != $ac_func; | |
9969 ; | |
9970 return 0; | |
9971 } | |
9972 _ACEOF | |
9973 rm -f conftest.$ac_objext conftest$ac_exeext | |
9974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9975 (eval $ac_link) 2>conftest.er1 | |
9976 ac_status=$? | |
9977 grep -v '^ *+' conftest.er1 >conftest.err | |
9978 rm -f conftest.er1 | |
9979 cat conftest.err >&5 | |
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9981 (exit $ac_status); } && | |
9982 { ac_try='test -z "$ac_c_werror_flag" | |
9983 || test ! -s conftest.err' | |
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9985 (eval $ac_try) 2>&5 | |
9986 ac_status=$? | |
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9988 (exit $ac_status); }; } && | |
9989 { ac_try='test -s conftest$ac_exeext' | |
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9991 (eval $ac_try) 2>&5 | |
9992 ac_status=$? | |
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9994 (exit $ac_status); }; }; then | |
9995 eval "$as_ac_var=yes" | |
9996 else | |
9997 echo "$as_me: failed program was:" >&5 | |
9998 sed 's/^/| /' conftest.$ac_ext >&5 | |
9999 | |
10000 eval "$as_ac_var=no" | |
10001 fi | |
10002 rm -f conftest.err conftest.$ac_objext \ | |
10003 conftest$ac_exeext conftest.$ac_ext | |
10004 fi | |
10005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10007 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10008 cat >>confdefs.h <<_ACEOF | |
10009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10010 _ACEOF | |
10011 HAVE_GTK_FILE_SELECTION=yes | |
10012 fi | |
10013 done | |
10014 | |
10015 | |
10016 HAVE_GTK_FILE_CHOOSER=no | |
10017 | |
10018 for ac_func in gtk_file_chooser_dialog_new | |
10019 do | |
10020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10021 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10023 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10024 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10025 else | |
10026 cat >conftest.$ac_ext <<_ACEOF | |
10027 /* confdefs.h. */ | |
10028 _ACEOF | |
10029 cat confdefs.h >>conftest.$ac_ext | |
10030 cat >>conftest.$ac_ext <<_ACEOF | |
10031 /* end confdefs.h. */ | |
10032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10033 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10034 #define $ac_func innocuous_$ac_func | |
10035 | |
10036 /* System header to define __stub macros and hopefully few prototypes, | |
10037 which can conflict with char $ac_func (); below. | |
10038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10039 <limits.h> exists even on freestanding compilers. */ | |
10040 | |
10041 #ifdef __STDC__ | |
10042 # include <limits.h> | |
10043 #else | |
10044 # include <assert.h> | |
10045 #endif | |
10046 | |
10047 #undef $ac_func | |
10048 | |
10049 /* Override any gcc2 internal prototype to avoid an error. */ | |
10050 #ifdef __cplusplus | |
10051 extern "C" | |
10052 { | |
10053 #endif | |
10054 /* We use char because int might match the return type of a gcc2 | |
10055 builtin and then its argument prototype would still apply. */ | |
10056 char $ac_func (); | |
10057 /* The GNU C library defines this for functions which it implements | |
10058 to always fail with ENOSYS. Some functions are actually named | |
10059 something starting with __ and the normal name is an alias. */ | |
10060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10061 choke me | |
10062 #else | |
10063 char (*f) () = $ac_func; | |
10064 #endif | |
10065 #ifdef __cplusplus | |
10066 } | |
10067 #endif | |
10068 | |
10069 int | |
10070 main () | |
10071 { | |
10072 return f != $ac_func; | |
10073 ; | |
10074 return 0; | |
10075 } | |
10076 _ACEOF | |
10077 rm -f conftest.$ac_objext conftest$ac_exeext | |
10078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10079 (eval $ac_link) 2>conftest.er1 | |
10080 ac_status=$? | |
10081 grep -v '^ *+' conftest.er1 >conftest.err | |
10082 rm -f conftest.er1 | |
10083 cat conftest.err >&5 | |
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10085 (exit $ac_status); } && | |
10086 { ac_try='test -z "$ac_c_werror_flag" | |
10087 || test ! -s conftest.err' | |
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10089 (eval $ac_try) 2>&5 | |
10090 ac_status=$? | |
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10092 (exit $ac_status); }; } && | |
10093 { ac_try='test -s conftest$ac_exeext' | |
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10095 (eval $ac_try) 2>&5 | |
10096 ac_status=$? | |
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10098 (exit $ac_status); }; }; then | |
10099 eval "$as_ac_var=yes" | |
10100 else | |
10101 echo "$as_me: failed program was:" >&5 | |
10102 sed 's/^/| /' conftest.$ac_ext >&5 | |
10103 | |
10104 eval "$as_ac_var=no" | |
10105 fi | |
10106 rm -f conftest.err conftest.$ac_objext \ | |
10107 conftest$ac_exeext conftest.$ac_ext | |
10108 fi | |
10109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10111 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10112 cat >>confdefs.h <<_ACEOF | |
10113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10114 _ACEOF | |
10115 HAVE_GTK_FILE_CHOOSER=yes | |
10116 fi | |
10117 done | |
10118 | |
10119 | |
10120 if test "$HAVE_GTK_FILE_SELECTION" = yes \ | |
10121 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then | |
10122 | |
10123 cat >>confdefs.h <<\_ACEOF | |
10124 #define HAVE_GTK_FILE_BOTH 1 | |
9909 _ACEOF | 10125 _ACEOF |
9910 | 10126 |
9911 fi | 10127 fi |
9912 fi | 10128 fi |
9913 | 10129 |