aboutsummaryrefslogtreecommitdiffstats
path: root/autogen
diff options
context:
space:
mode:
authorPaul Eggert2011-09-03 16:03:38 -0700
committerPaul Eggert2011-09-03 16:03:38 -0700
commitb49e353d9d01adbe60bc5d0b1658b4ef978b0b06 (patch)
tree9f2ffa6f7a6562abf661a4951012b488ad8b1ae7 /autogen
parent74b880cbc18bd0194c7b1fc44c4a983ee05adae2 (diff)
parentbc3200871917d5c54c8c4299a06bf8f8ba2ea02d (diff)
downloademacs-b49e353d9d01adbe60bc5d0b1658b4ef978b0b06.tar.gz
emacs-b49e353d9d01adbe60bc5d0b1658b4ef978b0b06.zip
Merge from trunk.
Diffstat (limited to 'autogen')
-rw-r--r--autogen/Makefile.in1
-rw-r--r--autogen/config.in21
-rwxr-xr-xautogen/configure337
3 files changed, 220 insertions, 139 deletions
diff --git a/autogen/Makefile.in b/autogen/Makefile.in
index 3348d3a4c02..5b28ad0808b 100644
--- a/autogen/Makefile.in
+++ b/autogen/Makefile.in
@@ -495,6 +495,7 @@ LIBXT_OTHER = @LIBXT_OTHER@
495LIBX_OTHER = @LIBX_OTHER@ 495LIBX_OTHER = @LIBX_OTHER@
496LIB_GCC = @LIB_GCC@ 496LIB_GCC = @LIB_GCC@
497LIB_MATH = @LIB_MATH@ 497LIB_MATH = @LIB_MATH@
498LIB_PTHREAD = @LIB_PTHREAD@
498LIB_PTHREAD_SIGMASK = @LIB_PTHREAD_SIGMASK@ 499LIB_PTHREAD_SIGMASK = @LIB_PTHREAD_SIGMASK@
499LIB_STANDARD = @LIB_STANDARD@ 500LIB_STANDARD = @LIB_STANDARD@
500LTLIBINTL = @LTLIBINTL@ 501LTLIBINTL = @LTLIBINTL@
diff --git a/autogen/config.in b/autogen/config.in
index d4ec03b8343..24dd54db43f 100644
--- a/autogen/config.in
+++ b/autogen/config.in
@@ -218,6 +218,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
218/* Define to 1 if you have the `fpathconf' function. */ 218/* Define to 1 if you have the `fpathconf' function. */
219#undef HAVE_FPATHCONF 219#undef HAVE_FPATHCONF
220 220
221/* Define to 1 if you have the `freeifaddrs' function. */
222#undef HAVE_FREEIFADDRS
223
221/* Define to 1 if using the freetype and fontconfig libraries. */ 224/* Define to 1 if using the freetype and fontconfig libraries. */
222#undef HAVE_FREETYPE 225#undef HAVE_FREETYPE
223 226
@@ -254,6 +257,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
254/* Define to 1 if you have the `gethostname' function. */ 257/* Define to 1 if you have the `gethostname' function. */
255#undef HAVE_GETHOSTNAME 258#undef HAVE_GETHOSTNAME
256 259
260/* Define to 1 if you have the `getifaddrs' function. */
261#undef HAVE_GETIFADDRS
262
257/* Define to 1 if you have the `getline' function. */ 263/* Define to 1 if you have the `getline' function. */
258#undef HAVE_GETLINE 264#undef HAVE_GETLINE
259 265
@@ -321,9 +327,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
321/* Define to 1 if you have the `gtk_adjustment_get_page_size' function. */ 327/* Define to 1 if you have the `gtk_adjustment_get_page_size' function. */
322#undef HAVE_GTK_ADJUSTMENT_GET_PAGE_SIZE 328#undef HAVE_GTK_ADJUSTMENT_GET_PAGE_SIZE
323 329
324/* Define to 1 if you have GTK and pthread (-lpthread). */
325#undef HAVE_GTK_AND_PTHREAD
326
327/* Define to 1 if you have the `gtk_dialog_get_action_area' function. */ 330/* Define to 1 if you have the `gtk_dialog_get_action_area' function. */
328#undef HAVE_GTK_DIALOG_GET_ACTION_AREA 331#undef HAVE_GTK_DIALOG_GET_ACTION_AREA
329 332
@@ -354,6 +357,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
354/* Define to 1 if netdb.h declares h_errno. */ 357/* Define to 1 if netdb.h declares h_errno. */
355#undef HAVE_H_ERRNO 358#undef HAVE_H_ERRNO
356 359
360/* Define to 1 if you have the <ifaddrs.h> header file. */
361#undef HAVE_IFADDRS_H
362
357/* Define to 1 if using imagemagick. */ 363/* Define to 1 if using imagemagick. */
358#undef HAVE_IMAGEMAGICK 364#undef HAVE_IMAGEMAGICK
359 365
@@ -554,6 +560,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
554/* Define to 1 if you have the `mremap' function. */ 560/* Define to 1 if you have the `mremap' function. */
555#undef HAVE_MREMAP 561#undef HAVE_MREMAP
556 562
563/* Define to 1 if you have the <net/if_dl.h> header file. */
564#undef HAVE_NET_IF_DL_H
565
557/* Define to 1 if you have the <net/if.h> header file. */ 566/* Define to 1 if you have the <net/if.h> header file. */
558#undef HAVE_NET_IF_H 567#undef HAVE_NET_IF_H
559 568
@@ -582,6 +591,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
582/* Define to 1 if you have the `pstat_getdynamic' function. */ 591/* Define to 1 if you have the `pstat_getdynamic' function. */
583#undef HAVE_PSTAT_GETDYNAMIC 592#undef HAVE_PSTAT_GETDYNAMIC
584 593
594/* Define to 1 if you have pthread (-lpthread). */
595#undef HAVE_PTHREAD
596
585/* Define to 1 if you have the <pthread.h> header file. */ 597/* Define to 1 if you have the <pthread.h> header file. */
586#undef HAVE_PTHREAD_H 598#undef HAVE_PTHREAD_H
587 599
@@ -705,6 +717,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
705/* Define to 1 if `ifr_addr' is a member of `struct ifreq'. */ 717/* Define to 1 if `ifr_addr' is a member of `struct ifreq'. */
706#undef HAVE_STRUCT_IFREQ_IFR_ADDR 718#undef HAVE_STRUCT_IFREQ_IFR_ADDR
707 719
720/* Define to 1 if `ifr_addr.sa_len' is a member of `struct ifreq'. */
721#undef HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN
722
708/* Define to 1 if `ifr_broadaddr' is a member of `struct ifreq'. */ 723/* Define to 1 if `ifr_broadaddr' is a member of `struct ifreq'. */
709#undef HAVE_STRUCT_IFREQ_IFR_BROADADDR 724#undef HAVE_STRUCT_IFREQ_IFR_BROADADDR
710 725
diff --git a/autogen/configure b/autogen/configure
index 074850731b0..bbd54f57153 100755
--- a/autogen/configure
+++ b/autogen/configure
@@ -1139,6 +1139,7 @@ IMAGEMAGICK_LIBS
1139IMAGEMAGICK_CFLAGS 1139IMAGEMAGICK_CFLAGS
1140RSVG_LIBS 1140RSVG_LIBS
1141RSVG_CFLAGS 1141RSVG_CFLAGS
1142LIB_PTHREAD
1142VMLIMIT_OBJ 1143VMLIMIT_OBJ
1143GMALLOC_OBJ 1144GMALLOC_OBJ
1144HAVE_XSERVER 1145HAVE_XSERVER
@@ -2467,63 +2468,6 @@ $as_echo "$ac_res" >&6; }
2467 2468
2468} # ac_fn_c_check_header_preproc 2469} # ac_fn_c_check_header_preproc
2469 2470
2470# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2471# ----------------------------------------------------
2472# Tries to find if the field MEMBER exists in type AGGR, after including
2473# INCLUDES, setting cache variable VAR accordingly.
2474ac_fn_c_check_member ()
2475{
2476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2478$as_echo_n "checking for $2.$3... " >&6; }
2479if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2480 $as_echo_n "(cached) " >&6
2481else
2482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2483/* end confdefs.h. */
2484$5
2485int
2486main ()
2487{
2488static $2 ac_aggr;
2489if (ac_aggr.$3)
2490return 0;
2491 ;
2492 return 0;
2493}
2494_ACEOF
2495if ac_fn_c_try_compile "$LINENO"; then :
2496 eval "$4=yes"
2497else
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499/* end confdefs.h. */
2500$5
2501int
2502main ()
2503{
2504static $2 ac_aggr;
2505if (sizeof ac_aggr.$3)
2506return 0;
2507 ;
2508 return 0;
2509}
2510_ACEOF
2511if ac_fn_c_try_compile "$LINENO"; then :
2512 eval "$4=yes"
2513else
2514 eval "$4=no"
2515fi
2516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517fi
2518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519fi
2520eval ac_res=\$$4
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2522$as_echo "$ac_res" >&6; }
2523 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2524
2525} # ac_fn_c_check_member
2526
2527# ac_fn_c_check_func LINENO FUNC VAR 2471# ac_fn_c_check_func LINENO FUNC VAR
2528# ---------------------------------- 2472# ----------------------------------
2529# Tests whether FUNC exists, setting the cache variable VAR accordingly 2473# Tests whether FUNC exists, setting the cache variable VAR accordingly
@@ -2591,6 +2535,63 @@ $as_echo "$ac_res" >&6; }
2591 2535
2592} # ac_fn_c_check_func 2536} # ac_fn_c_check_func
2593 2537
2538# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2539# ----------------------------------------------------
2540# Tries to find if the field MEMBER exists in type AGGR, after including
2541# INCLUDES, setting cache variable VAR accordingly.
2542ac_fn_c_check_member ()
2543{
2544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2546$as_echo_n "checking for $2.$3... " >&6; }
2547if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2548 $as_echo_n "(cached) " >&6
2549else
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551/* end confdefs.h. */
2552$5
2553int
2554main ()
2555{
2556static $2 ac_aggr;
2557if (ac_aggr.$3)
2558return 0;
2559 ;
2560 return 0;
2561}
2562_ACEOF
2563if ac_fn_c_try_compile "$LINENO"; then :
2564 eval "$4=yes"
2565else
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567/* end confdefs.h. */
2568$5
2569int
2570main ()
2571{
2572static $2 ac_aggr;
2573if (sizeof ac_aggr.$3)
2574return 0;
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579if ac_fn_c_try_compile "$LINENO"; then :
2580 eval "$4=yes"
2581else
2582 eval "$4=no"
2583fi
2584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585fi
2586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587fi
2588eval ac_res=\$$4
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2590$as_echo "$ac_res" >&6; }
2591 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2592
2593} # ac_fn_c_check_member
2594
2594# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2595# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2595# ------------------------------------------- 2596# -------------------------------------------
2596# Tests whether TYPE exists after having included INCLUDES, setting cache 2597# Tests whether TYPE exists after having included INCLUDES, setting cache
@@ -4373,8 +4374,8 @@ configuration=${host_alias-${build_alias-$host}}
4373machine='' opsys='' unported=no 4374machine='' opsys='' unported=no
4374case "${canonical}" in 4375case "${canonical}" in
4375 4376
4376 ## GNU/Linux ports 4377 ## GNU/Linux and similar ports
4377 *-*-linux-gnu*) 4378 *-*-linux* )
4378 opsys=gnu-linux 4379 opsys=gnu-linux
4379 case ${canonical} in 4380 case ${canonical} in
4380 alpha*) machine=alpha ;; 4381 alpha*) machine=alpha ;;
@@ -4471,17 +4472,6 @@ case "${canonical}" in
4471 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS" 4472 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4472 ;; 4473 ;;
4473 4474
4474 ia64*-hp-hpux1[1-9]* )
4475 machine=hp800 opsys=hpux11
4476 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4477 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4478 CANNOT_DUMP=yes
4479 ;;
4480
4481 hppa*-*-linux-gnu* )
4482 machine=hp800 opsys=gnu-linux
4483 ;;
4484
4485 ## IBM machines 4475 ## IBM machines
4486 rs6000-ibm-aix4.[23]* ) 4476 rs6000-ibm-aix4.[23]* )
4487 machine=ibmrs6000 opsys=aix4-2 4477 machine=ibmrs6000 opsys=aix4-2
@@ -8358,6 +8348,18 @@ $as_echo "#define NO_MATHERR 1" >>confdefs.h
8358 8348
8359fi 8349fi
8360 8350
8351for ac_header in sys/socket.h
8352do :
8353 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8354if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
8355 cat >>confdefs.h <<_ACEOF
8356#define HAVE_SYS_SOCKET_H 1
8357_ACEOF
8358
8359fi
8360
8361done
8362
8361for ac_header in net/if.h 8363for ac_header in net/if.h
8362do : 8364do :
8363 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 8365 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
@@ -8374,6 +8376,51 @@ fi
8374 8376
8375done 8377done
8376 8378
8379for ac_header in ifaddrs.h
8380do :
8381 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8382#if HAVE_SYS_SOCKET_H
8383#include <sys/socket.h>
8384#endif
8385"
8386if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8387 cat >>confdefs.h <<_ACEOF
8388#define HAVE_IFADDRS_H 1
8389_ACEOF
8390
8391fi
8392
8393done
8394
8395for ac_header in net/if_dl.h
8396do :
8397 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8398#if HAVE_SYS_SOCKET_H
8399#include <sys/socket.h>
8400#endif
8401"
8402if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8403 cat >>confdefs.h <<_ACEOF
8404#define HAVE_NET_IF_DL_H 1
8405_ACEOF
8406
8407fi
8408
8409done
8410
8411for ac_func in getifaddrs freeifaddrs
8412do :
8413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8414ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8415eval as_val=\$$as_ac_var
8416 if test "x$as_val" = x""yes; then :
8417 cat >>confdefs.h <<_ACEOF
8418#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8419_ACEOF
8420
8421fi
8422done
8423
8377 8424
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 8425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8379$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 8426$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
@@ -8565,6 +8612,22 @@ _ACEOF
8565 8612
8566 8613
8567fi 8614fi
8615ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8616#if HAVE_SYS_SOCKET_H
8617#include <sys/socket.h>
8618#endif
8619#if HAVE_NET_IF_H
8620#include <net/if.h>
8621#endif
8622"
8623if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
8624
8625cat >>confdefs.h <<_ACEOF
8626#define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8627_ACEOF
8628
8629
8630fi
8568 8631
8569 8632
8570 8633
@@ -9038,7 +9101,7 @@ $as_echo "$HAVE_GNU_MAKE" >&6; }
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5 9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9039$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } 9102$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9040 SAVE_CFLAGS="$CFLAGS" 9103 SAVE_CFLAGS="$CFLAGS"
9041 CFLAGS="$CFLAGS -MMD -MF deps.d" 9104 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043/* end confdefs.h. */ 9106/* end confdefs.h. */
9044 9107
@@ -9063,7 +9126,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9063$as_echo "$ac_enable_autodepend" >&6; } 9126$as_echo "$ac_enable_autodepend" >&6; }
9064 fi 9127 fi
9065 if test $ac_enable_autodepend = yes; then 9128 if test $ac_enable_autodepend = yes; then
9066 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d' 9129 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9067 ## In parallel builds, another make might create depdir between 9130 ## In parallel builds, another make might create depdir between
9068 ## the first test and mkdir, so stick another test on the end. 9131 ## the first test and mkdir, so stick another test on the end.
9069 ## Or use install-sh -d? mkdir -p is not portable. 9132 ## Or use install-sh -d? mkdir -p is not portable.
@@ -9949,6 +10012,72 @@ if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9949fi 10012fi
9950 10013
9951 10014
10015LIB_PTHREAD=
10016for ac_header in pthread.h
10017do :
10018 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10019if test "x$ac_cv_header_pthread_h" = x""yes; then :
10020 cat >>confdefs.h <<_ACEOF
10021#define HAVE_PTHREAD_H 1
10022_ACEOF
10023
10024fi
10025
10026done
10027
10028if test "$ac_cv_header_pthread_h"; then
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10030$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10031if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10032 $as_echo_n "(cached) " >&6
10033else
10034 ac_check_lib_save_LIBS=$LIBS
10035LIBS="-lpthread $LIBS"
10036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037/* end confdefs.h. */
10038
10039/* Override any GCC internal prototype to avoid an error.
10040 Use char because int might match the return type of a GCC
10041 builtin and then its argument prototype would still apply. */
10042#ifdef __cplusplus
10043extern "C"
10044#endif
10045char pthread_self ();
10046int
10047main ()
10048{
10049return pthread_self ();
10050 ;
10051 return 0;
10052}
10053_ACEOF
10054if ac_fn_c_try_link "$LINENO"; then :
10055 ac_cv_lib_pthread_pthread_self=yes
10056else
10057 ac_cv_lib_pthread_pthread_self=no
10058fi
10059rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10061LIBS=$ac_check_lib_save_LIBS
10062fi
10063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10064$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10065if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10066 HAVE_PTHREAD=yes
10067fi
10068
10069fi
10070if test "$HAVE_PTHREAD" = yes; then
10071 case "${canonical}" in
10072 *-hpux*) ;;
10073 *) LIB_PTHREAD="-lpthread" ;;
10074 esac
10075
10076$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10077
10078fi
10079
10080
9952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5 10081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9953$as_echo_n "checking for cma_open in -lpthreads... " >&6; } 10082$as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9954if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then : 10083if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
@@ -10774,70 +10903,6 @@ done
10774 10903
10775 fi 10904 fi
10776 10905
10777 HAVE_GTK_AND_PTHREAD=no
10778 for ac_header in pthread.h
10779do :
10780 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10781if test "x$ac_cv_header_pthread_h" = x""yes; then :
10782 cat >>confdefs.h <<_ACEOF
10783#define HAVE_PTHREAD_H 1
10784_ACEOF
10785
10786fi
10787
10788done
10789
10790 if test "$ac_cv_header_pthread_h"; then
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10792$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10793if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10794 $as_echo_n "(cached) " >&6
10795else
10796 ac_check_lib_save_LIBS=$LIBS
10797LIBS="-lpthread $LIBS"
10798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799/* end confdefs.h. */
10800
10801/* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
10804#ifdef __cplusplus
10805extern "C"
10806#endif
10807char pthread_self ();
10808int
10809main ()
10810{
10811return pthread_self ();
10812 ;
10813 return 0;
10814}
10815_ACEOF
10816if ac_fn_c_try_link "$LINENO"; then :
10817 ac_cv_lib_pthread_pthread_self=yes
10818else
10819 ac_cv_lib_pthread_pthread_self=no
10820fi
10821rm -f core conftest.err conftest.$ac_objext \
10822 conftest$ac_exeext conftest.$ac_ext
10823LIBS=$ac_check_lib_save_LIBS
10824fi
10825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10826$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10827if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10828 HAVE_GTK_AND_PTHREAD=yes
10829fi
10830
10831 fi
10832 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10833 case "${canonical}" in
10834 *-hpux*) ;;
10835 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10836 esac
10837
10838$as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10839
10840 fi
10841 10906
10842 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \ 10907 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10843 gtk_dialog_get_action_area gtk_widget_get_sensitive \ 10908 gtk_dialog_get_action_area gtk_widget_get_sensitive \