summaryrefslogtreecommitdiff
path: root/data/rlwrap/cross.diff
blob: 6bf51b3aadddd53bc55f905ea2152145c11e09f6 (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
diff -ru rlwrap-0.29/configure.ac rlwrap-0.29+iPhone/configure.ac
--- rlwrap-0.29/configure.ac	2007-11-11 11:01:45.000000000 +0000
+++ rlwrap-0.29+iPhone/configure.ac	2007-12-28 14:10:56.000000000 +0000
@@ -98,23 +98,9 @@
 AC_MSG_RESULT($ac_term_h_compiles)
 
 
-AC_MSG_CHECKING([whether your getopt() correctly understands double colons in option string]) 
-AC_RUN_IFELSE(
-    [AC_LANG_PROGRAM( [[ const char optstring[] = "+:a::b";
-		         char  * myargv [] = {"progname", "-a", "-b"}; 
-		         int myargc = 3;
-			 extern char *optarg;
-		      ]] , [[
-		         int opt = getopt(myargc, myargv, optstring);
-		         if (opt != 'a' || optarg) /* optarg != NULL means that -b is seen as argument of -a */ 
-		           exit (-1);
-		        else
-		           exit(0); ]] )],
-    [AC_DEFINE(GETOPT_GROKS_OPTIONAL_ARGS, 1, Define if your getopt() correctly understands double colons in the option string)
+    AC_DEFINE(GETOPT_GROKS_OPTIONAL_ARGS, 1, Define if your getopt() correctly understands double colons in the option string)
      AC_SUBST(HAVE_OPTIONAL_ARGS,yes)
-     ac_double_colons="yes"],
-    [AC_SUBST(HAVE_OPTIONAL_ARGS,no)
-     ac_double_colons="no"])
+     ac_double_colons="yes"
 AC_MSG_RESULT($ac_double_colons)
 
 # Checks for typedefs, structures, and compiler characteristics.
@@ -280,10 +266,7 @@
 
 # check for existence of myself under /proc/$$/cwd
 echo "Will rlwrap find command's working directory under /proc/<commands pid>/cwd? let's see..."
-AC_CHECK_FILES(/proc/$$/cwd/configure.ac,[
-                  AC_DEFINE(HAVE_PROC_PID_CWD,1 ,[Define to 1 if /proc/<pid>/cwd is a link to working directory of process <pid>])
-                  AC_SUBST(HAVE_PROC_PID_CWD,[yes])
-               ],[AC_SUBST(HAVE_PROC_PID_CWD,[no])])
+               AC_SUBST(HAVE_PROC_PID_CWD,[no])
 
 
 echo