--- a/src/hugin_base/algorithms/external/to-be-added/AutoCtrlPointCreator.cpp
+++ b/src/hugin_base/algorithms/external/to-be-added/AutoCtrlPointCreator.cpp
@@ -166,7 +166,7 @@
             return cps;
         }
     }
-#elif (defined __WXMAC__)
+#elif (defined __WXMAC__) && HUGIN_OSX_BUNDLED
     wxString autopanoExe = wxConfigBase::Get()->Read(wxT("/AutoPanoSift/AutopanoExe"), wxT(HUGIN_APSIFT_EXE));
     
     //if the autopano-sift front end specified in preference does not exist: