summaryrefslogtreecommitdiff
path: root/editors/xemacs-current/patches/patch-ab
blob: 19e189702709a246ff2546e0a5d5043f9d14c5a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
$NetBSD: patch-ab,v 1.3 2003/01/18 05:45:43 uebayasi Exp $

--- configure.orig	Mon Dec 16 11:33:04 2002
+++ configure
@@ -1159,6 +1159,7 @@
 machine='' opsys=''
 
 case "$canonical" in
+  arm-*-*         ) machine=arm ;;
   sparc-*-*        ) machine=sparc ;;
   alpha*-*-*       ) machine=alpha ;;
   vax-*-*          ) machine=vax ;;
@@ -1231,9 +1232,10 @@
     case "$canonical" in
       i[3-9]86-*-netbsd*) machine=intel386 ;;
       hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
-                                            machine=hp9000s300 ;;
+	machine=m68k ;;
       pc532-*-netbsd* | ns32k-*-netbsd* )  machine=ns32000 ;;
       pmax-*-netbsd*  | mips-*-netbsd*  )  machine=pmax ;;
+      alpha-*-netbsd* ) machine=alpha ;;
     esac
   ;;
 
@@ -3207,7 +3209,7 @@
     decosf* | linux* | irix*) dash_r="-rpath " ;;
     *)
       dash_r=""
-      for try_dash_r in "-R" "-R " "-rpath "; do
+      for try_dash_r in "-Wl,R" "-R " "-R " "-rpath "; do
         xe_check_libs="${try_dash_r}/no/such/file-or-directory"
         
 if test "$GCC" = "yes"; then
@@ -14233,6 +14235,43 @@
   fi
 fi
 
+ echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
+ echo "configure:10915: checking for main in -lossaudio" >&5
+ ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
+ 
+ xe_check_libs=" -lossaudio "
+ cat > conftest.$ac_ext <<EOF
+ #line 10920 "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
+     builtin and then its argument prototype would still apply.  */
+ 
+ int main() {
+ main()
+ ; return 0; }
+ EOF
+ if { (eval echo configure:10931: \"$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
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   eval "ac_cv_lib_$ac_lib_var=no"
+ fi
+ rm -f conftest*
+ xe_check_libs=""
+ 
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
+   echo "$ac_t""yes" 1>&6
+   LIBOSSAUDIO=-lossaudio
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+
+EOF
 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" &&  if test "$extra_verbose" = "yes"; then
    echo "    xemacs will be linked with \"miscplay.o\""
  fi
@@ -16072,6 +16111,7 @@
 s%@postgresql_libs@%$postgresql_libs%g
 s%@lwlib_objs@%$lwlib_objs%g
 s%@ALLOCA@%$ALLOCA%g
+s%@LIBOSSAUDIO@%$LIBOSSAUDIO%g
 s%@have_esd_config@%$have_esd_config%g
 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g