From f6f45af59e8cd572e724d95f3736f6a60f73486c Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 14 Jan 2007 02:19:27 +0000 Subject: Fix broken ./configure macros broken by introduction of an eval git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6316 e03df62e-2008-0410-955e-edbf42e46eb7 --- make/utilities.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'make/utilities.pm') diff --git a/make/utilities.pm b/make/utilities.pm index fac0cb356..dc755c63f 100644 --- a/make/utilities.pm +++ b/make/utilities.pm @@ -123,9 +123,10 @@ sub pkgconfig_get_lib_dirs($$$;$) # to functions within these modules at configure time. sub translate_functions($$) { + my ($line,$module) = @_; + eval { - my ($line,$module) = @_; $module =~ /modules*\/(.+?)$/; $module = $1; @@ -185,13 +186,16 @@ sub translate_functions($$) my $replace = make_rpath($1,$module); $line =~ s/rpath\("(.+?)"\)/$replace/; } - return $line; }; if ($@) { print "\n\nConfiguration failed. The following error occured:\n\n$@\n"; exit; } + else + { + return $line; + } } 1; -- cgit v1.2.3