summaryrefslogtreecommitdiff
path: root/uconfig.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-09-21 15:33:09 +0100
committerNicholas Clark <nick@ccl4.org>2011-09-27 22:25:05 +0200
commitae60cb464cebf89579ec0ff91db8b792b2f1e7cd (patch)
treefc1ab2f4a1d4d5360ffaf2df304bfe7c03f8c76c /uconfig.h
parent2982a345b7a1edb63720282eef0fba5c61d0e6b5 (diff)
downloadperl-ae60cb464cebf89579ec0ff91db8b792b2f1e7cd.tar.gz
Where available, use _NSGetExecutablePath() to make $^X absolute.
In Configure, check whether _NSGetExecutablePath() can be used to find the absolute pathname of the executable. If so, set usensgetexecutablepath in config.sh and USE_NSGETEXECUTABLEPATH in config.h. If this is set, then use this approach in S_set_caret_X() to canonicalise $^X as an absolute path. This approach works on OS X, and possible on other platforms that use dyld.
Diffstat (limited to 'uconfig.h')
-rw-r--r--uconfig.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/uconfig.h b/uconfig.h
index c5f19f7e08..c3799020da 100644
--- a/uconfig.h
+++ b/uconfig.h
@@ -2663,6 +2663,13 @@
*/
/*#define USE_KERN_PROC_PATHNAME / **/
+/* USE_NSGETEXECUTABLEPATH:
+ * This symbol, if defined, indicates that we can use _NSGetExecutablePath
+ * and realpath to get a full path for the executable, and hence convert
+ * $^X to an absolute path.
+ */
+/*#define USE_NSGETEXECUTABLEPATH / **/
+
/* Fpos_t:
* This symbol holds the type used to declare file positions in libc.
* It can be fpos_t, long, uint, etc... It may be necessary to include
@@ -4711,6 +4718,6 @@
#endif
/* Generated from:
- * e6513dfa5f1449ab9266aee521d6d5908873d1dc68bf4f049316ebc4921732e1 config_h.SH
- * e940950d07a2be0354d6ae7e4316ec8465ed581607bbb958d8bfda024b9941fe uconfig.sh
+ * 5b5dacbb00f53ae9b440c79cf6d5c8bbf80a7adfa1db3f3814aa77dc6f461fa7 config_h.SH
+ * b5e74633486412bbc4d2a1c3847f3e85b10a86e96fb5d1efb7b8bc885956d746 uconfig.sh
* ex: set ro: */