Skip to content

Commit 95584b5

Browse files
committed
python3
1 parent 1a21581 commit 95584b5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

framework/configure.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,13 @@ def cc(context):
376376
if os.path.isdir('/sw/lib'):
377377
context.env['LIBPATH'] = path_get(context,'LIBPATH',
378378
'/sw/lib')
379+
if os.path.isdir('/opt/homebrew'): # paths for Homebrew
380+
if os.path.isdir('/opt/homebrew/include'):
381+
context.env['CPPPATH'] = path_get(context, 'CPPPATH',
382+
'/opt/homebrew/include')
383+
if os.path.isdir('/opt/homebrew/lib'):
384+
context.env['LIBPATH'] = path_get(context, 'LIBPATH',
385+
'/opt/homebrew/lib')
379386
if os.path.isdir('/usr/local/Homebrew'): # paths for Homebrew
380387
if os.path.isdir('/usr/local/include'):
381388
context.env['CPPPATH'] = path_get(context, 'CPPPATH',
@@ -693,7 +700,7 @@ def sfpen(context):
693700
'fedora':'netpbm-devel',
694701
'centos':'netpbm-devel',
695702
'suse' :'libnetpbm-devel',
696-
'ubuntu':'libnetpbm10-dev'}
703+
'ubuntu':'libnetpbm11-dev'}
697704

698705
def ppm(context):
699706
context.Message("checking for ppm ... ")
@@ -899,6 +906,7 @@ def ffmpeg(context):
899906
else:
900907
for top in ('/usr/include','/usr/local/include',
901908
'/usr/include/x86_64-linux-gnu/',
909+
'/usr/include/aarch64-linux-gnu/',
902910
'/sw/include','/opt/local/include',
903911
'/usr/include/ffmpeg'):
904912
ffmpegpath = os.path.join(top,'ffmpeg')
@@ -2198,9 +2206,9 @@ def f77(context):
21982206
oldlink = context.env.get('LINK')
21992207
context.env['LINK'] = F77
22002208
res = context.TryLink(text,'.f')
2201-
context.env['LINK'] = oldlink
22022209
context.Result(res)
22032210
if not res:
2211+
context.env['LINK'] = oldlink
22042212
del context.env['F77']
22052213
sys.exit(unix_failure)
22062214
F77base = os.path.basename(F77)

0 commit comments

Comments
 (0)