3
# This script does some additional tests on system after config.guess
4
# usage: config.local [target_type]
6
# This script should be used if:
7
# 1) config.guess produces non-satisfactory results
8
# (e.g. if it's not able to distinguish certain architecture types)
9
# 2) config.guess fails
11
# Feel free to modify this script but do not check-in changes without
12
# psiadm's permission!!!
14
# Center for Computational Quantum Chemistry,
15
# University of Georgia,
20
# Analyze the $target and modify it in any way you like
23
# Always make sure that there're at least 3 components to any target
24
# To do that convert target into a cpu, vendor, and os.
25
# If any part is missing, then fill it in with unknown.
26
cpu=`echo $target | sed 's/\([^-]*\)-\([^-]*\)-\([^-]*\)-*.*/\1/'`
27
vendor=`echo $target | sed 's/\([^-]*\)-\([^-]*\)-\([^-]*\)-*.*/\2/'`
28
os=`echo $target | sed 's/\([^-]*\)-\([^-]*\)-\([^-]*\)-*.*/\3/'`
29
if [ -z "$cpu" ]; then cpu=unknown; fi
30
if [ -z "$vendor" ]; then vendor=unknown; fi
31
if [ -z "$os" ]; then os=unknown; fi