Permalink
Browse files

Merge branch 'indirect/master'

  • Loading branch information...
2 parents 6ab4f03 + ec9d028 commit a43080dc6e93e6ba4a4781ebcbab7dc6c025b396 @jasherai committed Dec 16, 2008
Showing with 8 additions and 3 deletions.
  1. +8 −3 ext/extconf.rb
View
@@ -1,4 +1,9 @@
require 'mkmf'
-have_library("onig")
-$CFLAGS='-Wall'
-create_makefile( "oregexp" )
+dir_config("onig")
+if have_library("onig")
+ $CFLAGS='-Wall'
+ create_makefile( "oregexp" )
+else
+ puts "Cannot find lib-oniguruma. Set location with e.g. --with-onig-dir=/opt/local"
+ exit 1
+end

0 comments on commit a43080d

Please sign in to comment.